Hey Frank
This is the code I have been using to add a reminder.
Reminder reminder = null;
bool alarmSet = appointment.AlarmSet;
if (alarmSet)
{
DateTime localAlarmTime = appointment.AlarmDate.ToLocalTime();
DateTime localStartTime = appointment.StartDate.ToLocalTime();
TimeSpan diff = localStartTime - localAlarmTime;
reminder = new Reminder();
reminder.Days = diff.Days;
reminder.Hours = diff.Hours;
reminder.Minutes = diff.Minutes;
}
feedEntry.Reminder = reminder;
This will set the reminder on the default calendar ok, but with no
reminder type e.g email or popup. When updating a default event it
will overwrite with with the reminder time but remove the reminder
type already set.
For shared calendars any existing reminder times or types in Google
are removed instead of overwritten using this.
Cheers for any help.
Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---