Class ZoneType
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The type of the zone.
public class ZoneType : NameEntity, IEntity, IComparable, IIdentifiable, IDefaultable
- Inheritance
-
ZoneType
- Implements
- Derived
- Inherited Members
Constructors
ZoneType()
Initializes a new instance of the ZoneType class.
public ZoneType()
ZoneType(Id?, string?, string?, Color?, bool?)
public ZoneType(Id? id, string? name = null, string? comment = null, Color? fillColor = null, bool? isBuiltIn = null)
Parameters
id
IdThe Id.
name
stringThe name.
comment
stringThe comment.
fillColor
ColorZoneType fill color.
isBuiltIn
bool?Is this a built-in ZoneType.
ZoneType(ZoneType)
Initializes a new instance of the ZoneType class.
protected ZoneType(ZoneType zoneType)
Parameters
zoneType
ZoneTypeType of the zone.
Properties
Comment
Gets or sets a free text field where any user information can be stored and referenced for this entity. Default [""].
public virtual string? Comment { get; set; }
Property Value
FillColor
Gets or sets the fill color of the zone type.
public virtual Color? FillColor { get; set; }
Property Value
IsBuiltIn
Gets or sets a value indicating whether the zone type is built-in.
public virtual bool? IsBuiltIn { 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()
SystemFromId(Id?)
Returns a system ZoneType from the provided system Id else null if its a not a system ZoneType.
public static ZoneType? SystemFromId(Id? id)
Parameters
id
IdThe id.