I just finished the implementation and the unittests for the Contacts,  
V2 support in .NET. You can get this by syncing to the subversion depot,
or downloading the DLLs directly from here:

http://code.google.com/p/google-gdata/source/detail?r=837

Note, that this is not finalized, as noted by the build number, but i  
like to give you an early bird testing opportunity, if you like.

This also includes a generics oriented object model, like the YouTube  
model. Here are some before & after pictures:

Let's assume you wanted all contacts, the code you wrote looked like  
this:


            feed = service.Query(query);
             foreach (ContactEntry e in feed.Entries)
             {
                 list.Add(e);
             }

             while (feed.NextChunk != null)
             {
                 ContactsQuery nq = new ContactsQuery(feed.NextChunk);
                 feed = service.Query(nq);
                 foreach (ContactEntry e in feed.Entries)
                 {
                     list.Add(e);
                 }
             }

and then list had all contacts.

With autopaging enabled, the new code is just one loop:

              List<Contact> list = new List<Contact>();

             Feed<Contact> f = cr.GetContacts();
             foreach (Contact e in f.Entries)
             {
                 list.Add(e);
             }

To get a better feel, check out this file:

http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/unittests/contactstest.cs


and compare methods like:


InsertContactsTest()

with

ModelInsertContactsTest()

Let me know if you have any issues or comments.

Expect a full release in the next 2 weeks, i have some other issues to  
look at before i create a new release.

Regards

Frank Mantek
Google




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to