Exemplo n.º 1
0
        public void sendContactUpdateSignal(string iptoken, Contact contact)   //in a test of the method, original has no return
        {
            string data = ContactBuilder.getSendingControlData(contact);

            sendControlMessage(iptoken, Control.ContactUpdateCc, ContactBuilder.getSendingControlData(contact));
//            return data;
        }
Exemplo n.º 2
0
        public void getSendingControlDataTest()
        {
            string data = ContactBuilder.getSendingControlData(new Contact()
            {
                mac = "", name = "sunil", currentIp = "123.23"
            });

            Contact cnt = ContactBuilder.getContactFromReceivedData(data);

            Console.WriteLine("mac: " + cnt.mac + "\nname: " + cnt.name + "\ncurrent ip: " + cnt.currentIp);
        }