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
-~----------~----~----~----~------~----~------~--~---