Class MimeContent
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The contents of a TextMessage containing data to give to a IOX Add-On over an RS232. It holds more data than SerialIoxContent and is not compatible with all Add-Ons. For more information regarding Add-On compatible please contact your reseller.
MimeContent is converted into bytes with a specific format. The first byte is the length of the MimeType (N). The next N bytes are the ASCII encoded bytes of the MimeType string. The next two bytes are the length of the Data (L). Finally, the next L bytes are the Data. Messages from MyGeotab will be delivered in this format and messages to MyGeotab must be in this format as well.
public class MimeContent : MimeContentBase, IBinaryPayload
- Inheritance
-
MimeContent
- Implements
- Inherited Members
Constructors
MimeContent()
Initializes a new instance of the MimeContent class.
public MimeContent()
MimeContent(string?, byte[]?, TimeSpan?, int?)
Initializes a new instance of the MimeContent class.
public MimeContent(string? mimeType, byte[]? data, TimeSpan? binaryDataPacketDelay, int? channelNumber)
Parameters
mimeType
stringType of the MIME.
data
byte[]The data.
binaryDataPacketDelay
TimeSpan?The delay to use between sending binary data packets to the GO Device. If null there is no delay. The maximum delay is defined by MaxBinaryDataPacketDelay.
channelNumber
int?The channel number for the MIME.
Properties
ComponentType
Gets the component type of the message.
public override int ComponentType { get; }
Property Value
Payload
Gets method to get raw binary. NOTE: The endianness of IDs and other numbers inside of the payload are reversed to keep the C# format.
public byte[] Payload { get; }
Property Value
- byte[]
byte buffer.
Methods
Clone()
Create a copy.
public IBinaryPayload Clone()
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()