// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

//## Custom using statements
//##

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc4x3.DateTimeResource
{
	public partial class @IfcEventTime : IIfcEventTime
	{

		[CrossSchemaAttribute(typeof(IIfcEventTime), 4)]
		Ifc4.DateTimeResource.IfcDateTime? IIfcEventTime.ActualDate 
		{ 
			get
			{
				if (!ActualDate.HasValue) return null;
				return new Ifc4.DateTimeResource.IfcDateTime(ActualDate.Value);
			} 
			set
			{
				ActualDate = value.HasValue ? 
					new IfcDateTime(value.Value) :  
					 new IfcDateTime?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcEventTime), 5)]
		Ifc4.DateTimeResource.IfcDateTime? IIfcEventTime.EarlyDate 
		{ 
			get
			{
				if (!EarlyDate.HasValue) return null;
				return new Ifc4.DateTimeResource.IfcDateTime(EarlyDate.Value);
			} 
			set
			{
				EarlyDate = value.HasValue ? 
					new IfcDateTime(value.Value) :  
					 new IfcDateTime?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcEventTime), 6)]
		Ifc4.DateTimeResource.IfcDateTime? IIfcEventTime.LateDate 
		{ 
			get
			{
				if (!LateDate.HasValue) return null;
				return new Ifc4.DateTimeResource.IfcDateTime(LateDate.Value);
			} 
			set
			{
				LateDate = value.HasValue ? 
					new IfcDateTime(value.Value) :  
					 new IfcDateTime?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcEventTime), 7)]
		Ifc4.DateTimeResource.IfcDateTime? IIfcEventTime.ScheduleDate 
		{ 
			get
			{
				if (!ScheduleDate.HasValue) return null;
				return new Ifc4.DateTimeResource.IfcDateTime(ScheduleDate.Value);
			} 
			set
			{
				ScheduleDate = value.HasValue ? 
					new IfcDateTime(value.Value) :  
					 new IfcDateTime?() ;
				
			}
		}
	//## Custom code
	//##
	}
}