Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Phonebook ContactList = new Phonebook(new Contact("Martin"));

            ContactList.AddNewContact("Test", "+59891611429", "3645352517");

            List <Contact> FoundContacts = ContactList.Search(new string [] { "Test" });

            Console.WriteLine(FoundContacts[0].Name + " " + FoundContacts[0].TwitterID);

            IMessageChannel TwitterChannel = new TwitterChannel();
            IMessageChannel WppChannel     = new WppChannel();

            ContactList.Send(FoundContacts[0], "BLABLA", TwitterChannel);
            ContactList.Send(FoundContacts[0], "Hey there! I'm using WhatsAppUCU", WppChannel);
        }