Right, I have a method that creates 'EventEntry's and sends them to the
calendar. The following code is what I've added to that method.

        ExtendedProperty priorityField = new ExtendedProperty();
        priorityField.setName("Priority");
        priorityField.setValue(priority);
        myEntry.addExtension(priorityField);

Then I have another method that queries the calendar and returns
'EventEntry's.

EventFeed resultFeed = myService.query(myQuery, EventFeed.class);

Then another method accesses those objects. I use the following code to
access the extension.

       ExtendedProperty prop =
matchEntry.getExtension(ExtendedProperty.class);
       System.out.println(prop.getValue());

So what you're saying is I need to let the Feed know that there are new
extensions and allow it create the relevant XML data to allow me to
communicate with it? So the code you provided will do that?  But it
won't create the new ExtensionProfile will it?

I had to change your code to get it to compile:
resultFeed.declareExtensions(myService.getExtensionProfile());

Any closer?


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

Reply via email to