Class EventDeviation
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class EventDeviation : Entity, IEntity, IComparable, IIdentifiable, IDateTimeProvider, IDeviceProvider, IDefaultable
- Inheritance
-
EventDeviation
- Implements
- Inherited Members
Constructors
EventDeviation()
Initializes a new instance of the EventDeviation class.
public EventDeviation()
EventDeviation(Id)
Initializes a new instance of the EventDeviation class.
public EventDeviation(Id id)
Parameters
id
IdThe id of the event occurrence entity.
EventDeviation(Id?, MaintenanceSchedule?, Device?, DateTime?, int?, DateTime?, bool?)
Initializes a new instance of the EventDeviation class.
[Obsolete("Avoid using big ugly constructors like this in practice. It makes for harder refactoring later.", false)]
public EventDeviation(Id? id, MaintenanceSchedule? eventRule, Device? device, DateTime? dateTime, int? snoozeDuration, DateTime? dueOn, bool? active)
Parameters
id
IdThe Id.
eventRule
MaintenanceScheduleThe event rule.
device
DeviceThe device.
dateTime
DateTime?The date time the snooze was requested on.
snoozeDuration
int?The duration of time the event was snoozed for, in days.
dueOn
DateTime?The date the snoozed event is due on.
active
bool?If set to true [active].
Properties
Active
Gets or sets a value indicating whether this EventDeviation is active.
public bool? Active { get; set; }
Property Value
- bool?
<c>true</c> if active; otherwise, <c>false</c>.
DateTime
Gets or sets the DateTime of the event exception.
public DateTime? DateTime { get; set; }
Property Value
Device
Gets or sets gets the Device.
public Device? Device { get; set; }
Property Value
- Device
The <see cref="Device"/>.
DueOn
Gets or sets the event date.
public DateTime? DueOn { get; set; }
Property Value
- DateTime?
The date the snoozed event is due on.
EventRule
Gets or sets the event rule.
public MaintenanceSchedule? EventRule { get; set; }
Property Value
- MaintenanceSchedule
The event rule.
SnoozeDuration
Gets or sets the snooze duration.
public int? SnoozeDuration { get; set; }
Property Value
- int?
The duration of time the event was snoozed for, in days.
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()