Table of Contents

Class NoDevice

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

A Device type that represents no device.

public class NoDevice : Device, IEntity, IComparable, IIdentifiable, IVersion, IGroupLinked, ITimeZoneIdProvider, IDefaultable, ICustomizable<Device>, IMediaFiles, IInstanceSizeEstimate
Inheritance
NoDevice
Implements
Inherited Members

Fields

Value

The singleton value.

public static readonly NoDevice Value

Field Value

NoDevice

Properties

ActiveFrom

Gets or sets the device was active at this date or after.

public override DateTime? ActiveFrom { get; set; }

Property Value

DateTime?

DateTime

Exceptions

NotSupportedException

Active from is not valid for NoDevice.

ActiveTo

Gets or sets the device was active at this date or before.

public override DateTime? ActiveTo { get; set; }

Property Value

DateTime?

DateTime

Exceptions

NotSupportedException

Active to is not valid for NoDevice.

Groups

Sets the Group(s) for reporting that this device belongs to.

public override IList<Group>? Groups { set; }

Property Value

IList<Group>

Group

Id

Gets or sets the unique identifier for this entity. see Id.

public override Id? Id { get; set; }

Property Value

Id

The Id .

Name

Gets or sets the name of this entity which identifies it and is used when displaying this entity.

public override string? Name { get; set; }

Property Value

string

The name of this entity that uniquely identifies it and is used when displaying this entity.

ProductId

Gets or sets device's ProductID.

public override int? ProductId { get; set; }

Property Value

int?

Nullable<T> where T is. int

Exceptions

NotSupportedException

ProductId is not supported for NoDevice.

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.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsSystemEntity()

Returns true if the class is a system entity, false otherwise.

public override bool IsSystemEntity()

Returns

bool

true if the entity is a system entity; otherwise, false.