MqttUnsubscribeMessage class
An unsubscribe message is sent by the client to the broker, to unsubscribe from topics.
- Inheritance
-
- Object
- MqttMessage
- MqttUnsubscribeMessage
Constructors
- MqttUnsubscribeMessage()
- Initializes a new instance of the MqttUnsubscribeMessage class.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- header ↔ MqttHeader?
-
The header of the MQTT Message. Contains metadata about the message
getter/setter pairinherited
- isValid → bool
-
Is valid
no setterinherited
- payload → MqttUnsubscribePayload
-
Gets the payload.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variableHeader → MqttUnsubscribeVariableHeader
-
Gets the variable header.
no setter
Methods
-
fromStringTopic(
String topic) → MqttUnsubscribeMessage - Adds a raw topic to the list of topics to unsubscribe from.
-
fromSubscriptionList(
List< MqttSubscription> subscriptions) → MqttUnsubscribeMessage - Adds a new unsubscription with the specified subscription list
-
fromTopic(
MqttSubscriptionTopic topic) → MqttUnsubscribeMessage - Adds a topic to the list of topics to unsubscribe from.
-
getWriteLength(
) → int - Write length
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFrom(
MqttByteBuffer messageStream) → void -
Reads a message from the supplied stream.
Not implemented, message is send only.
override
-
toString(
) → String -
A string representation of this object.
override
-
withMessageIdentifier(
int messageIdentifier) → MqttUnsubscribeMessage - Sets the message identifier on the subscribe message.
-
withUserProperties(
List< MqttUserProperty> properties) → MqttUnsubscribeMessage - User properties
-
withUserProperty(
MqttUserProperty property) → MqttUnsubscribeMessage - User property
-
writeTo(
MqttByteBuffer messageStream) → void -
Writes the message to the supplied stream.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited