Table of Contents

Class BinaryMessage

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

Binary Message for Go Device.

public class BinaryMessage : Entity, IEntity, IComparable, IIdentifiable, IDeviceProvider
Inheritance
BinaryMessage
Implements
Inherited Members

Constructors

BinaryMessage()

Initializes a new instance of the BinaryMessage class.

public BinaryMessage()

BinaryMessage(BinaryMessage)

Initializes a new instance of the BinaryMessage class.

public BinaryMessage(BinaryMessage otherObj)

Parameters

otherObj BinaryMessage

The other object.

BinaryMessage(Id)

Initializes a new instance of the BinaryMessage class.

public BinaryMessage(Id id)

Parameters

id Id

The unique identifier for this entity. See Id.

BinaryMessage(Id?, DateTime?, DateTime?, DateTime?, in TimeSpan, Device?, bool, IBinaryPayload?)

Initializes a new instance of the BinaryMessage class.

public BinaryMessage(Id? id, DateTime? sent, DateTime? expire, DateTime? delivered, in TimeSpan lifeSpan, Device? device, bool directionToVehicle, IBinaryPayload? payload)

Parameters

id Id

The identifier.

sent DateTime?

The sent.

expire DateTime?

The expire.

delivered DateTime?

The delivered.

lifeSpan TimeSpan

The life span.

device Device

The device.

directionToVehicle bool

if set to true [direction to vehicle].

payload IBinaryPayload

The payload.

BinaryMessage(in TimeSpan)

Initializes a new instance of the BinaryMessage class.

public BinaryMessage(in TimeSpan newLifeSpan)

Parameters

newLifeSpan TimeSpan

The new life span.

Properties

Delivered

Gets the delivered.

public DateTime? Delivered { get; }

Property Value

DateTime?

DateTime delivered.

Device

Gets or sets the device.

public Device? Device { get; set; }

Property Value

Device

The device.

DirectionToVehicle

Gets or sets a value indicating whether sets the direction to vehicle.

public bool DirectionToVehicle { get; set; }

Property Value

bool

if set to true [direction to vehicle].

Expire

Gets the expire.

public DateTime? Expire { get; }

Property Value

DateTime?

Datetime expired.

LifeSpan

Gets or sets the life span.

public TimeSpan LifeSpan { get; set; }

Property Value

TimeSpan

The life span.

MarkAsDelivered

Gets or sets a value indicating whether sets the mark as delivered.

public bool MarkAsDelivered { get; set; }

Property Value

bool

if set to true [mark as delivered].

Payload

Gets or sets the payload.

public IBinaryPayload? Payload { get; set; }

Property Value

IBinaryPayload

The payload.

Sent

Gets the sent.

public DateTime? Sent { get; }

Property Value

DateTime?

DateTime sent.

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

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

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.