public IEnumerable<IContact> GetContacts()
 {
     ContactsRequest cr = new ContactsRequest(_rs);
     //cr.Service.RequestFactory = new GDataLoggingRequestFactory(cr.Service.ServiceIdentifier, "GContactSync");
     Feed<Google.Contacts.Contact> feed = cr.GetContacts();
     List<IContact> list = new List<IContact>();
     foreach (Google.Contacts.Contact gContact in feed.Entries)
     {
         IContact c = new GContact(_rs, gContact);
         list.Add(c);
     }
     return list;
 }
Esempio n. 2
0
        public IEnumerable <IContact> GetContacts()
        {
            ContactsRequest cr = new ContactsRequest(_rs);
            //cr.Service.RequestFactory = new GDataLoggingRequestFactory(cr.Service.ServiceIdentifier, "GContactSync");
            Feed <Google.Contacts.Contact> feed = cr.GetContacts();
            List <IContact> list = new List <IContact>();

            foreach (Google.Contacts.Contact gContact in feed.Entries)
            {
                IContact c = new GContact(_rs, gContact);
                list.Add(c);
            }
            return(list);
        }