MqttPropertyContainer class
A property container for use in MQTT Messages
Constructors
Properties
- count → int
-
Number of properties
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Is Empty
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userProperties
→ List<
MqttUserProperty> -
no setter
Methods
-
add(
MqttIProperty property) → void - Add a property. Note that the container will hold the last added property of any type except user properties.
-
clear(
) → void - Clear
-
contains(
MqttIProperty property) → bool - Contains
-
delete(
MqttIProperty property) → bool - Delete a property. Returns true if the property was deleted, false if the property didn't already exist
-
getWriteLength(
) → int - Length of the serialized properties including the length bytes
-
length(
) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
propertiesAreValid(
) → bool - Check the property set is valid, i.e doesn't contain any not set identifiers. An empty container of properties is valid.
-
readFrom(
MqttByteBuffer stream) → void - Deserialize from a byte buffer stream The stream must be positioned at the start of the message properties, i.e. on the length bytes.
-
serialize(
) → Uint8Buffer - To byte buffer Complete serialization of the properties including the property length bytes
-
toList(
) → List< MqttIProperty> - To list
-
toString(
) → String -
A string representation of this object.
override
-
writeTo(
MqttByteBuffer stream) → void - Serialize to a byte buffer stream including the length
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited