Table of Contents

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

Initializes a new instance of the ZoneType class.Initializes a new instance of the ZoneType class.

public ZoneType(Id? id, string? name = null, string? comment = null, Color? fillColor = null, bool? isBuiltIn = null)

Parameters

id Id

The Id.

name string

The name.

comment string

The comment.

fillColor Color

ZoneType 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 ZoneType

Type 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

string

string

FillColor

Gets or sets the fill color of the zone type.

public virtual Color? FillColor { get; set; }

Property Value

Color

Color

IsBuiltIn

Gets or sets a value indicating whether the zone type is built-in.

public virtual bool? IsBuiltIn { get; set; }

Property Value

bool?

bool

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 Id

The id.

Returns

ZoneType

ZoneType