Exemplo n.º 1
0
 protected void fireOnGetGroups(WaGroupInfo[] groups)
 {
     if (this.OnGetGroups != null)
     {
         this.OnGetGroups(groups);
     }
 }
Exemplo n.º 2
0
 static void wa_OnGetGroups(WaGroupInfo[] groups)
 {
     Console.WriteLine("Got groups:");
     foreach (WaGroupInfo info in groups)
     {
         Console.WriteLine("\t{0} {1}", info.subject, info.id);
     }
 }
Exemplo n.º 3
0
        void wa_OnGetGroups(WaGroupInfo[] groups)
        {
            if (debug)
            {
                Console.WriteLine("Got groups:");
                foreach (WaGroupInfo info in groups)
                {
                    Console.WriteLine("\t{0} {1}", info.subject, info.id);
                }
            }

            _groups.Clear();
            foreach (WaGroupInfo group in groups)
            {
                _groups.Add(new FWhatsAppGroup(group.id, group.subject));
            }

        }