Table of Contents

Class SoftwareGeneratedDataRecord

Namespace
Geotab.StoreForward
Assembly
Geotab.Checkmate.ObjectModel.dll

false An abstract base class for software generated data records.

public abstract class SoftwareGeneratedDataRecord
Inheritance
SoftwareGeneratedDataRecord
Derived
Inherited Members

Constructors

SoftwareGeneratedDataRecord()

Initializes a new instance of the SoftwareGeneratedDataRecord class. Creates a new software generated data record.

protected SoftwareGeneratedDataRecord()

SoftwareGeneratedDataRecord(DateTime?)

Initializes a new instance of the SoftwareGeneratedDataRecord class. Creates a new software generated data record.

protected SoftwareGeneratedDataRecord(DateTime? dateTime)

Parameters

dateTime DateTime?

The DateTime.

Properties

DateTime

Gets or sets the date time the record occurred.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

The date time.

Methods

CreateBinaryData()

Converts the record into binary data to be inserted into the database.

public abstract byte[] CreateBinaryData()

Returns

byte[]

The binary data array.

EncodeDateTime(in Span<byte>, int, DateTime?)

Encodes the number of seconds since 2002/01/01.

public static void EncodeDateTime(in Span<byte> data, int offset, DateTime? value)

Parameters

data Span<byte>

The binary data array.

offset int

The array offset.

value DateTime?

The date and time.

EncodeSubSeconds(in Span<byte>, int, DateTime?)

Encodes the sub-seconds of the date in a single byte.

protected static void EncodeSubSeconds(in Span<byte> data, int offset, DateTime? value)

Parameters

data Span<byte>

The binary data array.

offset int

The array offset.

value DateTime?

The date and time.

GetDateTimeValue(DateTime?)

Gets the number of seconds since 2002/01/01.

protected static int GetDateTimeValue(DateTime? value)

Parameters

value DateTime?

The date and time.

Returns

int

The number of seconds since 2002/01/01.

GetSubSecondsValue(DateTime?)

Gets the sub-seconds of the date in a single byte.

protected static byte GetSubSecondsValue(DateTime? value)

Parameters

value DateTime?

The date and time.

Returns

byte

The sub-seconds of the date in a single byte.