Table of Contents

Class OtauContent

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 OtauContent : MimeContentBase, IBinaryPayload
Inheritance
OtauContent
Implements
Inherited Members

Constructors

OtauContent()

Initializes a new instance of the OtauContent class.

public OtauContent()

OtauContent(string?, byte[]?, TimeSpan?, int?)

Initializes a new instance of the OtauContent class.

public OtauContent(string? mimeType, byte[]? data, TimeSpan? binaryDataPacketDelay, int? channelNumber)

Parameters

mimeType string

Type 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

int

Channel number int.

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

IBinaryPayload

IBinaryPayload

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int