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; }
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); }