Table of Contents

Class TrailerAttachment

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

A TrailerAttachment is a record of the attachment of a Trailer to a Device over a period of time.

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 Id

The unique Id of the entity.

version long?

The version of the entity.

device Device

The Device which the Trailer is attached to.

trailer Trailer

The attached Trailer.

activeFrom DateTime?

The DateTime the Trailer was attached.

activeTo DateTime?

The DateTime the Trailer was detached.

Properties

ActiveFrom

Gets or sets the date and time the Trailer was attached. Default [UtcNow].

public DateTime? ActiveFrom { get; set; }

Property Value

DateTime?

DateTime

ActiveTo

Gets or sets the date and time the Trailer was detached. Default [MaxDate].

public DateTime? ActiveTo { get; set; }

Property Value

DateTime?

DateTime

DateTime

Gets the date the Trailer was attached. This is only present so that we can implement IDeviceProvider.

public DateTime? DateTime { get; }

Property Value

DateTime?

DateTime

Device

Gets or sets the Device which the Trailer is associated with.

public Device? Device { get; set; }

Property Value

Device

Device

Trailer

Gets or sets the attached Trailer.

public Trailer? Trailer { get; set; }

Property Value

Trailer

Trailer

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()