Ejemplo n.º 1
0
        public static Collection <Group> GetGoogleGroups(Syncronizer sync, Contact googleContact)
        {
            int c = googleContact.GroupMembership.Count;
            Collection <Group> groups = new Collection <Group>();
            string             id;
            Group group;

            for (int i = 0; i < c; i++)
            {
                id    = googleContact.GroupMembership[i].HRef;
                group = sync.GetGoogleGroupById(id);

                groups.Add(group);
            }
            return(groups);
        }