MqttSubscribePayload class

Class that contains details related to an MQTT Subscribe messages payload

Inheritance

Constructors

MqttSubscribePayload()
Initializes a new instance of the MqttSubscribePayload class.
MqttSubscribePayload.fromByteBuffer(MqttHeader? header, MqttVariableHeader? variableHeader, MqttByteBuffer payloadStream)
Initializes a new instance of the MqttSubscribePayload class.

Properties

hashCode int
The hash code for this object.
no setterinherited
Message header
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptions Map<String?, MqttQos?>
The collection of subscriptions, Key is the topic, Value is the qos
getter/setter pair
variableHeader MqttVariableHeader?
Variable header
getter/setter pair

Methods

addSubscription(String topic, MqttQos qos) → void
Adds a new subscription to the collection of subscriptions.
clearSubscriptions() → void
Clears the subscriptions.
getWriteLength() int
Gets the length of the payload in bytes when written to a stream.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFrom(MqttByteBuffer payloadStream) → void
Creates a payload from the specified header stream.
override
toString() String
A string representation of this object.
override
writeTo(MqttByteBuffer payloadStream) → void
Writes the payload to the supplied stream.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited