Retrieving events for a specified date range (Java)

http://code.google.com/apis/calendar/developers_guide_java.html#RetrievingDateRange

In the last line of the code:

// Send the request and receive the response:
CalendarEventFeed resultFeed = myService.query(myQuery, Feed.class);


We are passing Feed.class and storing it into CalendarEventFeed object
variable.

Feed is a super class of CalendarEventFeed. Hence the
CalendarEventFeed class object wont be able to recognize the result of
myService.query(...) method. It will result in a compiler error.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to