Hello Julian OK, I've tried everything you've suggested and no success. I can see that the file contactentry.cs contains code for GroupMembershipInfo but this class is simply not visible.
I agree that Google.GData.Contacts.GroupMembership should be a valid reference but it is not. Could I ask you to try for yourself please as I have been through every dll and source file to find a working solution with no success - but clearly you can do it, so what's the difference? R. On Thu, Apr 9, 2009 at 2:35 PM, Julian (Google) <[email protected]> wrote: > > Hi, > > The class GroupMembership is on Google.GData.Contacts (not on > Google.Contacts). Please, make sure you have the import or use the > full name: Google.GData.Contacts.GroupMembership > > Double check the .dll that you have installed and the project > references. Also, as a last option, you can download the library from > the SVN: http://code.google.com/p/google-gdata/source/checkout > > --Julian. > > On Apr 9, 1:57 pm, Richard Trinder <[email protected]> > wrote: > > Thanks for this.... but I have downloaded the latest and I still can work > > wit System Groups. In an older post Julian (of Google) suggested using > code > > like this: > > GroupMembershipInfo groupMembershipInfo = new GroupMembershipInfo(); > > groupMembershipInfo.setHref(getGroupUrlByName(contactsService, > > "contacts")); > > entry.addGroupMembershipInfo(groupMembershipInfo); > > > > ... but the latest download doesn't seem to contain the > GroupMembershipInfo > > class. > > > > .. so I'm stuck! > > > > R. > > > > On Thu, Apr 9, 2009 at 1:39 PM, chandu chandrakanth sn < > > > > [email protected]> wrote: > > > Hi, > > > > > Actually, to work with System Groups (like My Contacts) you need the > > > latest version of the library that implements Contacts V2, you can > > > download the latest GData library for .NET here: > > >http://code.google.com/p/google-gdata/downloads/list > > > > > On 4/9/09, Andre Roy <[email protected]> wrote: > > > > >> richard at selestial wrote: > > >> > I was hoping to use code like this to add a contact to the > > >> > "MyContacts" group (as suggested by Julian of Google): > > > > >> > GroupMembershipInfo groupMembershipInfo = new > GroupMembershipInfo > > >> > (); > > >> > groupMembershipInfo.setHref(getGroupUrlByName(contactsService, > > >> > "contacts")); > > >> > entry.addGroupMembershipInfo(groupMembershipInfo); > > > > >> > But it isn't possible (GroupMembershipInfo doesn't exist in my > version > > >> > of the .net library). Is there a later version or am I doing > something > > >> > stupid? > > > > >> I don't think so. I've found that in .net, you can't retrieve any info > > >> about "My Contacts", "Most Contacted" or "All Contacts". They're just > > >> there, but not visible to .net. I don't know if you can actually add a > > >> contact to the "My Contacts" group. Or actually, add the "My Contacts" > > >> group to the user, at least that's the way I was adding users to > groups. > > > > >> -- > > >> Andre -- If it's unworkable, it's a go! > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
