Hope someone can help me with this code which could be an example for
c#:

            LogMsg("Create first recurring event...");
            EventEntry newEntry = new EventEntry();
            Recurrence newRecurrence = new Recurrence();

            // Daily event from 10 - 11
            newRecurrence.Value = "DTSTART;TZID=Europe/
Berlin;VALUE=DATETIME:20091210T100000" + "\r\n" +
                "DTEND;TZID=Europe/Berlin;VALUE=DATETIME:
20091210T110000" + "\r\n" +
                "RRULE:FREQ=DAILY";

            newEntry.Title.Text = "Test Recurring Event";
            newEntry.Recurrence = newRecurrence;
            EventEntry insertedNewEntry = myService.Insert(query.Uri,
newEntry);

            // ****************************************

            LogMsg("Now creating recurrence event...");
            EventEntry newRecEntry = new EventEntry();

            newRecEntry.Title.Text = "Test Recurring Event - CHANGED";

            // Just this time from 6 - 7
            newRecEntry.Times.Add(new When(DateTime.Parse("2009-12-11
06:00"),
                DateTime.Parse("2009-12-11 07:00")));

            string[] words = insertedNewEntry.EditUri.Content.Split
('/');
            String eventOrigID = words[words.Length - 1];

            OriginalEvent origEvent = new OriginalEvent();
            origEvent.IdOriginal = eventOrigID;
            origEvent.Href = insertedNewEntry.EditUri.Content;
            When origTime = new When();
            origTime.StartTime = DateTime.Parse("2009-12-10 10:00");
            origEvent.OriginalStartTime = origTime;

The recurring event is inserted and the changed event,too. It seems
that there's no link between the
recurring event and new event... The recurring event still remains
active and is not changed...

--

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