Example #1
0
        /// <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 MqttPublishAckMessage() {
            this.Header = new MqttHeader() {
                MessageType = MqttMessageType.PublishAck
            };

            this.VariableHeader = new MqttPublishAckVariableHeader() {
                ConnectFlags = new MqttConnectFlags()
            };
        }
Example #2
0
        /// <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 MqttPublishAckMessage()
        {
            this.Header = new MqttHeader()
            {
                MessageType = MqttMessageType.PublishAck
            };

            this.VariableHeader = new MqttPublishAckVariableHeader()
            {
                ConnectFlags = new MqttConnectFlags()
            };
        }
Example #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttConnectMessage" /> class.
 /// </summary>
 /// <param name="header">The header to use for the message.</param>
 /// <param name="messageStream">The message stream positioned after the header.</param>
 internal MqttPublishAckMessage(MqttHeader header, Stream messageStream)
 {
     this.Header         = header;
     this.VariableHeader = new MqttPublishAckVariableHeader(messageStream);
 }
Example #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MqttConnectMessage" /> class.
 /// </summary>
 /// <param name="header">The header to use for the message.</param>
 /// <param name="messageStream">The message stream positioned after the header.</param>
 internal MqttPublishAckMessage(MqttHeader header, Stream messageStream) {
     this.Header = header;
     this.VariableHeader = new MqttPublishAckVariableHeader(messageStream);
 }