Class CanInstance
Represents a CAN message.
Inheritance
System.Object
    CanInstance
  Namespace: MESL.SqlRace.Domain.Repositories.CAN
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class CanInstance : Object
  Constructors
CanInstance(Int64, Byte, UInt32, Byte[])
Initialises a new instance of the CanInstance class.
Declaration
public CanInstance(long timestamp, byte isReceived, uint canId, byte[] message)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | timestamp | Timestamp of the CAN message.  | 
      
| System.Byte | isReceived | Indicates receive or transmit.  | 
      
| System.UInt32 | canId | CAN ID.  | 
      
| System.Byte[] | message | Message payload; not copied.  | 
      
Properties
CanId
Gets CAN ID.
Declaration
public uint CanId { get; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt32 | 
IsReceived
Gets whether the message was received or transmitted.
Declaration
public byte IsReceived { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Byte | 
Message
Gets the message payload, without copying.
Declaration
public byte[] Message { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Byte[] | 
Timestamp
Gets the timestamp of the CAN data instance.
Declaration
public long Timestamp { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
UniqueCanDataKey
Unique Guid for this Can instance, computed by hashing all the other properties.
Declaration
public Guid UniqueCanDataKey { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Guid |