Table of Contents

Class ExceptionEvent

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

The event of an exception generated by Rule violation.

[ReportClass]
public class ExceptionEvent : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDeviceProvider, IDriverProvider, IDiagnosticProvider, IDateRange, IDeletedDateTimeProvider
Inheritance
ExceptionEvent
Implements
Derived
Inherited Members

Constructors

ExceptionEvent()

Initializes a new instance of the ExceptionEvent class.

public ExceptionEvent()

ExceptionEvent(ExceptionEvent)

Initializes a new instance of the ExceptionEvent class.

protected ExceptionEvent(ExceptionEvent exceptionEvent)

Parameters

exceptionEvent ExceptionEvent

The exception event.

ExceptionEvent(Id?, long?, Rule?, Device?, Driver?, Diagnostic?, DateTime?, DateTime?, float?, ExceptionEventState?, DateTime?, DateTime?)

Initializes a new instance of the ExceptionEvent class.

public ExceptionEvent(Id? id, long? version, Rule? rule, Device? device, Driver? driver, Diagnostic? diagnostic, DateTime? activeFrom, DateTime? activeTo, float? distance, ExceptionEventState? state = null, DateTime? lastModifiedDateTime = null, DateTime? dtDeleted = null)

Parameters

id Id

The Id.

version long?

The version.

rule Rule

The Rule.

device Device

The Device.

driver Driver

The Driver.

diagnostic Diagnostic

The Diagnostic.

activeFrom DateTime?

Start getActiveFrom of the ExceptionEvent.

activeTo DateTime?

End getActiveTo of theExceptionEvent.

distance float?

The distance traveled during the ExceptionEvent.

state ExceptionEventState

The ExceptionEventState of this exceptions.

lastModifiedDateTime DateTime?

The DateTime that this exception event was last updated.

dtDeleted DateTime?

The DateTime that this exception event was deleted.

Properties

ActiveFrom

Gets or sets the start date of the ExceptionEvent; at or after this date.

public DateTime? ActiveFrom { get; set; }

Property Value

DateTime?

DateTime

ActiveTo

Gets or sets the end date of the ExceptionEvent; at or before this date.

public DateTime? ActiveTo { get; set; }

Property Value

DateTime?

The. DateTime

DeletedDateTime

An interface for an entity that can be marked as deleted.

public DateTime? DeletedDateTime { get; set; }

Property Value

DateTime?

Device

Gets or sets the Device specified for the device.

public Device? Device { get; set; }

Property Value

Device

Device

Diagnostic

Gets or sets the Diagnostic

public Diagnostic? Diagnostic { get; set; }

Property Value

Diagnostic

Diagnostic

Distance

Gets or sets the km distance traveled since the start of the ExceptionEvent.

public float? Distance { get; set; }

Property Value

float?

float

Driver

Gets or sets the Driver specified for the device.

public Driver? Driver { get; set; }

Property Value

Driver

Driver

Duration

Gets the duration of the violation.

public TimeSpan? Duration { get; }

Property Value

TimeSpan?

TimeSpan

Exceptions

Gets or sets the ExceptionInstances of the exception.

public List<ExceptionInstance>? Exceptions { get; set; }

Property Value

List<ExceptionInstance>

List of the ExceptionInstance

From

Gets the first or starting date in the date range.

public DateTime? From { get; }

Property Value

DateTime?

DateTime

LastModifiedDateTime

Gets or sets the time this exception event was last updated. Default [MinDate].

public DateTime LastModifiedDateTime { get; set; }

Property Value

DateTime

DateTime

Rule

Gets or sets the Rule which was violated.

public Rule? Rule { get; set; }

Property Value

Rule

Rule

State

Gets or sets the ExceptionEventState of the exception.

public ExceptionEventState? State { get; set; }

Property Value

ExceptionEventState

ExceptionEventState

To

Gets the second or ending date in the date range.

public DateTime? To { get; }

Property Value

DateTime?

DateTime

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 this instance.

public override string ToString()

Returns

string

A string that represents this instance.