Table of Contents

Class MessageToTransmit

Namespace
Iot.Device.Swarm
Assembly
Iot.Device.Swarm.dll

Message to be transmitted to the Swarm network.

public class MessageToTransmit : MessageBase
Inheritance
MessageToTransmit
Inherited Members

Constructors

MessageToTransmit(byte[], uint)

Initializes a new instance of the MessageToTransmit class.

public MessageToTransmit(byte[] data, uint applicationId = 0)

Parameters

data byte[]

Data to be sent.

applicationId uint

The application ID tag for the message.

Remarks

Creates a Message to be sent to the Swarm network.

MessageToTransmit(string, uint)

Initializes a new instance of the MessageToTransmit class.

public MessageToTransmit(string data, uint applicationId = 0)

Parameters

data string

Data to be sent.

applicationId uint

The application ID tag for the message.

Remarks

Creates a Message to be sent to the Swarm network.

Properties

ExpireTime

Gets or sets DateTime value after which the message will be expired if it has not been sent.

public DateTime ExpireTime { get; set; }

Property Value

DateTime

Remarks

The message will be considered expired if not sent before the specified time.

HoldDuration

Gets or sets the number of seconds to hold the message if it has not been sent before expiring it from the database.

public uint HoldDuration { get; set; }

Property Value

uint

Remarks

This is optional. The default is 172800 seconds, minimum is 60 seconds.

ID

Gets message identifier assigned by the device.

public string ID { get; }

Property Value

string

Remarks

This property is empty for messages that have been created by code.

TimeStamp

Gets time-stamp of the moment the message was received by the Tile.

public DateTime TimeStamp { get; }

Property Value

DateTime

Remarks

This property is empty for messages that have been created by code.