MqttPublishAckVariableHeader class
The Variable Header of the publish ack message contains the following fields in the order: message identifier from the publish message that is being acknowledged, publish reason code and the properties.
- Implemented types
Constructors
- MqttPublishAckVariableHeader(dynamic _header)
- Initializes a new instance of the MqttPublishAckVariableHeader class.
- MqttPublishAckVariableHeader.fromByteBuffer(dynamic _header, MqttByteBuffer headerStream)
- Initializes a new instance of the class from a byte buffer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → MqttHeader?
-
no setter
- length → int
-
The length of the variable header as received.
To get the write length us getWriteLength
no setteroverride
- messageIdentifier ↔ int
-
The message identifier
getter/setter pair
- reasonCode ↔ MqttPublishReasonCode?
-
Publish reason code
getter/setter pair
- reasonString ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userProperty
↔ List<
MqttUserProperty> -
getter/setter pair
Methods
-
getWriteLength(
) → int -
Gets the length of the write data.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFrom(
MqttByteBuffer variableHeaderStream) → void -
Creates a variable header from the specified header stream.
override
-
readMessageIdentifier(
MqttByteBuffer stream) → void - Read the message identifier
-
readReasonCode(
MqttByteBuffer stream) → void - Read the reason code.
-
toString(
) → String -
A string representation of this object.
override
-
writeMessageIdentifier(
MqttByteBuffer stream) → void - Write the message identifier.
-
writeReasonCode(
MqttByteBuffer stream) → void - Write the reason code
-
writeTo(
MqttByteBuffer variableHeaderStream) → void -
Writes a variable header to the supplied message stream.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited