/// <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() }; }
/// <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); }