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
IdThe Id.
group
GroupThe Group.
linkedEntity
DeviceThe 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
To
Gets or sets the date the user is active to. Default [MaxDate].
public DateTime? To { 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.
ToString()
public override string ToString()