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
BinaryMessageThe other object.
BinaryMessage(Id)
Initializes a new instance of the BinaryMessage class.
public BinaryMessage(Id id)
Parameters
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
IdThe identifier.
sent
DateTime?The sent.
expire
DateTime?The expire.
delivered
DateTime?The delivered.
lifeSpan
TimeSpanThe life span.
device
DeviceThe device.
directionToVehicle
boolif set to true [direction to vehicle].
payload
IBinaryPayloadThe payload.
BinaryMessage(in TimeSpan)
Initializes a new instance of the BinaryMessage class.
public BinaryMessage(in TimeSpan newLifeSpan)
Parameters
newLifeSpan
TimeSpanThe 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
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
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
Returns
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.