Table of Contents

Class GroupDevice

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

Represents a Group linked to a Device. This defines to the many to many relationship between a Device and Group.

public class GroupDevice : GroupLinkedEntity<Device>, IEntity, IComparable, IIdentifiable, IDateRange
Inheritance
GroupDevice
Implements
Inherited Members

Constructors

GroupDevice()

Initializes a new instance of the GroupDevice class.

public GroupDevice()

GroupDevice(Id?, Group?, Device?, DateTime?, DateTime?)

Initializes a new instance of the GroupDevice class.

public GroupDevice(Id? id, Group? group, Device? linkedEntity, DateTime? activeFrom, DateTime? activeTo)

Parameters

id Id

The Id.

group Group

The Group.

linkedEntity Device

The linked entity.

activeFrom DateTime?

The date the link is active from.

activeTo DateTime?

The date the link is active to.

Properties

From

Gets or sets the date the user is active from. Default [UtcNow].

public DateTime? From { get; set; }

Property Value

DateTime?

ActiveFrom

To

Gets or sets the date the user is active to. Default [MaxDate].

public DateTime? To { get; set; }

Property Value

DateTime?

ActiveTo

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.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.