public MqttUnsubscribeMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Unsubscribe;
     QualityOfService = QualityOfService.AtLeastOnce;
     TopicNames = new string[0];
 }
 public MqttUnsubscribeMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Unsubscribe;
     QualityOfService  = QualityOfService.AtLeastOnce;
     TopicNames        = new string[0];
 }
 public MqttPublishMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Publish;
     QualityOfService  = QualityOfService.AtMostOnce;
     Retain            = false;
     Payload           = new byte[0]; // Start payload with 0-length array, not null array
 }
 public MqttPublishMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Publish;
     QualityOfService = QualityOfService.AtMostOnce;
     Retain = false;
     Payload = new byte[0];  // Start payload with 0-length array, not null array
 }
        public MqttConnectMessageBuilder()
        {
            _bldr = new MqttMessageBuilderBase();
            _bldr.MessageType = MessageType.Connect;

            // Defaults
            KeepAliveTime = MqttProtocolInformation.Settings.KeepAliveTime;
            CleanSession = true;
        }
        public MqttConnectMessageBuilder()
        {
            _bldr             = new MqttMessageBuilderBase();
            _bldr.MessageType = MessageType.Connect;

            // Defaults
            KeepAliveTime = MqttProtocolInformation.Settings.KeepAliveTime;
            CleanSession  = true;
        }
 public MqttPublishCompleteMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PubComp;
     _bldr.QualityOfService = QualityOfService.AtLeastOnce;
 }
 public MqttConnectAckMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.ConnAck;
 }
 public MqttUnsubscribeAckMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.UnsubAck;
 }
 public MqttSubscribeMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Subscribe;
     QualityOfService = QualityOfService.AtLeastOnce;
 }
Beispiel #11
0
 public MqttSubscribeAckMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.SubAck;
 }
 public MqttPingRequestMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PingReq;
 }
 public MqttPublishAckMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PubAck;
 }
Beispiel #14
0
 public MqttPingResponseMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PingResp;
 }
Beispiel #15
0
 public MqttSubscribeMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Subscribe;
     QualityOfService  = QualityOfService.AtLeastOnce;
 }
 public MqttPublishReceivedMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PubRec;
     _bldr.QualityOfService = QualityOfService.AtLeastOnce;
 }
 public MqttPublishAckMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PubAck;
 }
 public MqttPingRequestMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PingReq;
 }
 public MqttDisconnectMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Disconnect;
 }
 public MqttPingResponseMessageBuilder()
 {
     _bldr = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.PingResp;
 }
 public MqttPublishReceivedMessageBuilder()
 {
     _bldr                  = new MqttMessageBuilderBase();
     _bldr.MessageType      = MessageType.PubRec;
     _bldr.QualityOfService = QualityOfService.AtLeastOnce;
 }
 public MqttPublishCompleteMessageBuilder()
 {
     _bldr                  = new MqttMessageBuilderBase();
     _bldr.MessageType      = MessageType.PubComp;
     _bldr.QualityOfService = QualityOfService.AtLeastOnce;
 }
 public MqttConnectAckMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.ConnAck;
 }
Beispiel #24
0
 public MqttDisconnectMessageBuilder()
 {
     _bldr             = new MqttMessageBuilderBase();
     _bldr.MessageType = MessageType.Disconnect;
 }