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
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
IdThe unique Id of the trailer.
name
stringThe name of the trailer.
version
long?The version of the entity.
comment
stringThe 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
Groups
Gets or sets the list of trailer groups.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.TrailerGroups }, IsList = true)]
public IList<Group>? Groups { get; set; }
Property Value
Id
Gets or sets the unique Id of the trailer.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.TrailerId })]
public override Id? Id { get; set; }
Property Value
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
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
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)