public Job(ReadoutRequest Request, int SeqNr, DateTime When, string From, XmppSensorServer Sensor)
 {
     this.Request = Request;
     this.SeqNr   = SeqNr;
     this.When    = When;
     this.From    = From;
     this.Sensor  = Sensor;
 }
Пример #2
0
        /// <summary>
        /// Class handling a chat interface over XMPP, according to proto-XEP: http://htmlpreview.github.io/?https://github.com/joachimlindborg/XMPP-IoT/blob/master/xep-0000-IoT-Chat.html
        /// It does not support concentrators (XEP-0326).
        /// </summary>
        /// <param name="Client">XMPP Client to use for communication.</param>
        /// <param name="Provisioning">Optional provisioning server to use.</param>
        /// <param name="Sensor">XMPP Sensor interface, if any, null otherwise.</param>
        /// <param name="Control">XMPP Control interface, if any, null otherwise.</param>
        public XmppChatServer(XmppClient Client, ProvisioningServer Provisioning, XmppSensorServer Sensor, XmppControlServer Control)
        {
            this.client       = Client;
            this.provisioning = Provisioning;
            this.sensor       = Sensor;
            this.control      = Control;

            this.client.OnMessageReceived += this.OnMessage;
        }
Пример #3
0
 /// <summary>
 /// Class handling a chat interface over XMPP, according to proto-XEP: http://htmlpreview.github.io/?https://github.com/joachimlindborg/XMPP-IoT/blob/master/xep-0000-IoT-Chat.html
 /// It does not support concentrators (XEP-0326).
 /// </summary>
 /// <param name="Client">XMPP Client to use for communication.</param>
 /// <param name="Sensor">XMPP Sensor interface, if any, null otherwise.</param>
 /// <param name="Control">XMPP Control interface, if any, null otherwise.</param>
 public XmppChatServer(XmppClient Client, XmppSensorServer Sensor, XmppControlServer Control)
     : this(Client, null, Sensor, Control)
 {
 }