MqttDisconnectVariableHeader class

The variable Header of the disconnect message contains the following fields in the order: disconnect reason code, and properties.

Implemented types

Constructors

MqttDisconnectVariableHeader(MqttHeader? header)
Initializes a new instance of the MqttDisconnectVariableHeader class.
MqttDisconnectVariableHeader.fromByteBuffer(MqttHeader? header, MqttByteBuffer variableHeaderStream)
Initializes a new instance of the MqttDisconnectVariableHeader class.

Properties

hashCode int
The hash code for this object.
no setterinherited
Standard header
getter/setter pair
length int
The length of the variable header as received. To get the write length usegetWriteLength.
no setteroverride
reasonCode MqttDisconnectReasonCode?
Reason code
getter/setter pair
reasonString String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverReference String?
getter/setter pair
sessionExpiryInterval int?
getter/setter pair
userProperty List<MqttUserProperty>
getter/setter pair

Methods

getWriteLength() int
Gets the length of the write data when WriteTo will be called.
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
readReasonCode(MqttByteBuffer stream) → void
Reason code.
toString() String
A string representation of this object.
override
writeReasonCode(MqttByteBuffer stream) → void
Reason code.
writeTo(MqttByteBuffer variableHeaderStream) → void
Writes the variable header to the supplied stream.
override

Operators

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