コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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();
 }