Thanks Kyle for all your help. It's working now. All my objects are the
Calendar equivalents where possible. Here is the working code:
//This is added to a new CalendarEventEntry
ExtendedProperty priorityField = new ExtendedProperty();
priorityField.setName("Priority");
priorityField.setValue(priority);
myEntry.addExtendedProperty(priorityField);
//This is in my query method
new
CalendarEventFeed().declareExtensions(myService.getExtensionProfile());
CalendarEventFeed resultFeed = myService.query(myQuery,
CalendarEventFeed.class);
//Finally, this is how I get the property back
ArrayList propertyList = (ArrayList)
matchEntry.getExtendedProperty();
ExtendedProperty property = (ExtendedProperty)
propertyList.get(0);
System.out.println(property.getValue());
Hope that makes sense to people. Thanks again.
Jake
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---