MqttSubscription class
An individual subscription as used by the client to build and track the status of subscriptions and unsubscriptions.
Constructors
- MqttSubscription.new(MqttSubscriptionTopic topic, [MqttSubscriptionOption? option])
- Construction with an optional option
- MqttSubscription.withMaximumQos(MqttSubscriptionTopic topic, MqttQos? qos)
- With a maximum qos
Properties
- createdTime ↔ DateTime
-
The time the subscription was created or for an unsubscribe
the unsubscription time.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- maximumQos ↔ MqttQos?
-
The maximum QOS level of the topic for subscriptions.
getter/setter pair
- option ↔ MqttSubscriptionOption?
-
The subscription topic option for subscriptions
getter/setter pair
- reasonCode ↔ MqttSubscribeReasonCode?
-
The subscribe reason code as returned by a either a subscribe acknowledgement
message or an unsubscribe acknowledgement message.
Note that for an unsubscribe operation if the reason code indicates a
failure the client will still locally unsubscribe the topic.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topic ↔ MqttSubscriptionTopic
-
The topic that is subscribed to or unsubscribed from.
getter/setter pair
-
userProperties
↔ List<
MqttUserProperty> -
User properties as supplied in subscribe or unsubscribe operations
or as received in subscribe acknowledge or unsubscribe acknowledge
messages.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override