Hi Trevor,

I'm using the JAVA API. Here is a brief outline of the code:


        CalendarEventEntry entry = ...;

        entry.setTitle(new PlainTextConstruct(_TITLE_PREFIX + " * " + ...);

        if (practical.type() == Practical.MARKED) {
                entry.setContent(new PlainTextConstruct("This is a marked
practical!"));
        }

        entry.setQuickAdd(false);

        {
                DateTime startTime = ...;
                DateTime endTime =  ...;

                When eventTimes = new When();
                eventTimes.setStartTime(startTime);
                eventTimes.setEndTime(endTime);
                entry.addTime(eventTimes);
        }

        URL editUrl = new URL(entry.getEditLink().getHref());
        ... = _service.update(editUrl, entry);

I have created a new When object but can only add it to the entry and
not replace the existing time.

Regards,
David

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