/// <summary>
        ///     Initializes a new instance of the <see cref="MqttPublishMessage" /> class.
        /// </summary>
        /// <remarks>
        ///     Only called via the MqttMessage.Create operation during processing of an Mqtt message stream.
        /// </remarks>
        public MqttUnsubscribeAckMessage()
        {
            this.Header = new MqttHeader().AsType(MqttMessageType.UnsubscribeAck);

            this.VariableHeader = new MqttUnsubscribeAckVariableHeader()
            {
                ConnectFlags = new MqttConnectFlags()
            };
        }
 /// <summary>
 ///     Reads a message from the supplied stream.
 /// </summary>
 /// <param name="messageStream">The message stream.</param>
 public override void ReadFrom(Stream messageStream)
 {
     this.VariableHeader = new MqttUnsubscribeAckVariableHeader(messageStream);
 }