Table of Contents

Class Trailer

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

A trailer which can be attached and detached from a vehicle with a TrailerAttachment record.

[ReportClass]
[Obsolete("Trailer is no longer supported. Please use the Device object model and API instead.", false)]
public class Trailer : NameEntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IGroupLinked, IDefaultable
Inheritance
Trailer
Implements
Derived
Inherited Members

Constructors

Trailer()

Initializes a new instance of the Trailer class.

public Trailer()

Trailer(Id?)

Initializes a new instance of the Trailer class.

public Trailer(Id? id)

Parameters

id Id

The unique Id of the trailer.

Trailer(Id?, string?, long?, string?, IList<Group>?)

Initializes a new instance of the Trailer class.

public Trailer(Id? id, string? name, long? version, string? comment, IList<Group>? trailerGroups)

Parameters

id Id

The unique Id of the trailer.

name string

The name of the trailer.

version long?

The version of the entity.

comment string

The comment.

trailerGroups IList<Group>

The trailer Groups.

Properties

Comment

Gets or sets free text field where any user information can be stored and referenced for this entity. Default [""].

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.TrailerComment })]
public virtual string? Comment { get; set; }

Property Value

string

string

Groups

Gets or sets the list of trailer groups.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.TrailerGroups }, IsList = true)]
public IList<Group>? Groups { get; set; }

Property Value

IList<Group>

IList<T>

Id

Gets or sets the unique Id of the trailer.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.TrailerId })]
public override Id? Id { get; set; }

Property Value

Id

Id

Name

Gets or sets the name of the trailer. Maximum length [255].

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.TrailerName })]
public override string? Name { get; set; }

Property Value

string

string

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

Trailer A new object that is a copy of this instance.

PopulateDefaults()

Populate non-required empty (null) properties with default values.

public void PopulateDefaults()

SystemFromId(Id?)

Returns a system Trailer from the provided system Id, otherwise this returns null.

public static Trailer? SystemFromId(Id? id)

Parameters

id Id

The unique Id of the trailer.

Returns

Trailer

Trailer