/// <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 MqttSubscribeAckVariableHeader(messageStream); this.Payload = new MqttSubscribeAckPayload(Header, VariableHeader, messageStream); }
/// <summary> /// Initializes a new instance of the <see cref="MqttSubscribeAckMessage" /> class. /// </summary> /// <remarks> /// Only called via the MqttMessage.Create operation during processing of an Mqtt message stream. /// </remarks> public MqttSubscribeAckMessage() { this.Header = new MqttHeader().AsType(MqttMessageType.SubscribeAck); this.VariableHeader = new MqttSubscribeAckVariableHeader(); this.Payload = new MqttSubscribeAckPayload(); }