Class TrailerAttachment
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class TrailerAttachment : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDateTimeProvider, IDeviceProvider, IDefaultable
- Inheritance
-
TrailerAttachment
- Implements
- Inherited Members
Constructors
TrailerAttachment()
Initializes a new instance of the TrailerAttachment class.
public TrailerAttachment()
TrailerAttachment(Id?, long?, Device?, Trailer?, DateTime?, DateTime?)
Initializes a new instance of the TrailerAttachment class.
public TrailerAttachment(Id? id, long? version, Device? device, Trailer? trailer, DateTime? activeFrom, DateTime? activeTo)
Parameters
id
IdThe unique Id of the entity.
version
long?The version of the entity.
device
Devicetrailer
TrailerThe attached Trailer.
activeFrom
DateTime?activeTo
DateTime?
Properties
ActiveFrom
Gets or sets the date and time the Trailer was attached. Default [UtcNow].
public DateTime? ActiveFrom { get; set; }
Property Value
ActiveTo
Gets or sets the date and time the Trailer was detached. Default [MaxDate].
public DateTime? ActiveTo { get; set; }
Property Value
DateTime
Gets the date the Trailer was attached. This is only present so that we can implement IDeviceProvider.
public DateTime? DateTime { get; }
Property Value
Device
public Device? Device { get; set; }
Property Value
Trailer
Gets or sets the attached Trailer.
public Trailer? Trailer { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
PopulateDefaults()
Populate non-required empty (null) properties with default values.
public void PopulateDefaults()