MqttSubscribeMessage class

Implementation of an MQTT Subscribe Message.

Inheritance

Constructors

MqttSubscribeMessage()
Initializes a new instance of the MqttSubscribeMessage class.
MqttSubscribeMessage.fromByteBuffer(MqttHeader header, MqttByteBuffer messageStream)
Initializes a new instance of the MqttSubscribeMessage class.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
The header of the MQTT Message. Contains metadata about the message
read / write, inherited
payload MqttSubscribePayload
Gets or sets the payload of the Mqtt Message.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
variableHeader MqttSubscribeVariableHeader
Gets or sets the variable header contents. Contains extended metadata about the message.
read / write

Methods

atQos(MqttQos qos) MqttSubscribeMessage
Sets the Qos level of the last topic added to the subscription list via a call to ToTopic(string).
expectAcknowledgement() MqttSubscribeMessage
Sets the message up to request acknowledgement from the broker for each topic subscription.
isDuplicate() MqttSubscribeMessage
Sets the duplicate flag for the message to indicate its a duplicate of a previous message type with the same message identifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
readFrom(MqttByteBuffer messageStream) → void
Reads a message from the supplied stream.
override
toString() String
Returns a string representation of this object.
override
toTopic(String topic) MqttSubscribeMessage
Adds a new subscription topic with the AtMostOnce Qos Level. If you want to change the Qos level follow this call with a call to AtTopic(MqttQos).
withMessageIdentifier(int messageIdentifier) MqttSubscribeMessage
Sets the message identifier on the subscribe message.
writeTo(MqttByteBuffer messageStream) → void
Writes the message to the supplied stream.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited