Hi,
Thanks for posting your workarounds. This issue will be resolved in
the next version of the Java client library, which will be released
when we roll out the new calendar features.
Cheers,
Lane
On May 4, 1:31 pm, mike <[EMAIL PROTECTED]> wrote:
> We had the same problem it seems that Google changed the type that
> attendees are from Who to EventWho, this means the getParticipants
> (which returns Who) is blank. We used the following code and now get
> the List back.
>
> for (EventWho googleAttendee :
> CalendarEventEntry.getRepeatingExtension(EventWho.class)) {
> result.getAttendees().add(new
> EventAttendee(googleAttendee.getValueString(),
> googleAttendee.getEmail()));
>
> }
>
> On May 2, 12:48 pm, TestGuy <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm using the GData Java Calendar API, and when I call
> > CalendarEventEntry.getParticipants() it always returns an empty list,
> > even though I have participants for my event.
>
> > For example:
>
> > CalendarEventEntry entry = resultFeed.getEntries().get(i);
>
> > int size = entry.getParticipants().size(); // Always 0!
>
> > Via my debugger, I've managed to work around by fetching EventWho's
> > from the RepeatingExtension collection directly:
>
> > List<EventWho> myList =
> > entry.getRepeatingExtension(EventWho.class);
> > for (EventWho who : myList)
> > {
> > System.out.println("Event Who: " + who.getEmail());
> > }
>
> > It appears as though the getParticipants() method needs to be
> > overridden in CalendarEventEntry, since it defines the EventWho class
> > as a RepeatingExtension. Instead, getParticipants() is being called in
> > the superclass (EventEntry), which looks for Who classes only (and not
> > subclasses of Who).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---