Class MessageToTransmit
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
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
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
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
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
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
Remarks
This property is empty for messages that have been created by code.