Esempio n. 1
0
 // The protected OnSensorClientEvent method raises the event by invoking
 // the delegates. The sender is always this, the current instance of the class.
 protected virtual void OnSensorClientCreateEvent(SensorClientCreateEventArgs e)
 {
     if (m_bCreated == true)
     {
         SensorClientCreateEvent(this, e);
     }
 }
Esempio n. 2
0
        private void OnBind(object sender, JidEventArgs e)
        {
            Debug.WriteLine("Success in XMPP Binding in sensor client: " + e.Jid);

            m_bCreated = true;
            SensorClientCreateEventArgs sce = new SensorClientCreateEventArgs(true);

            OnSensorClientCreateEvent(sce);
        }
Esempio n. 3
0
        private void OnBind(object sender, JidEventArgs e)
        {
            Debug.WriteLine("Success in XMPP Binding in sensor client: " + e.Jid);

            m_bCreated = true;
            SensorClientCreateEventArgs sce = new SensorClientCreateEventArgs(true);
            OnSensorClientCreateEvent(sce);
        }
Esempio n. 4
0
 // The protected OnSensorClientEvent method raises the event by invoking
 // the delegates. The sender is always this, the current instance of the class.
 protected virtual void OnSensorClientCreateEvent(SensorClientCreateEventArgs e)
 {
     if (m_bCreated == true)
     {
         SensorClientCreateEvent(this, e);
     }
 }
Esempio n. 5
0
 static void sc_SensorClientCreateEvent(object sender, SensorClientCreateEventArgs e)
 {
     sc.Subscribe("example", Subscribehandler);
 }
Esempio n. 6
0
        protected void OnSensorClientCreateEvent(object sender, SensorClientCreateEventArgs e)
        {
            if (e.Ready == true)
            {
                //m_sensorClient.Subscribe(Constant.NODE_ACTION, OnSubscribeHandler);
                m_sensorClient.Subscribe(m_netManager.Username + "_action", OnSubscribeHandler);
            }

            m_chatManager = new ChatManager(this);
            m_infJason = new JasonInterface(this);
        }