Ejemplo n.º 1
0
 public void Apply(CalendarItemCreated @event)
 {
     Events.Add(@event);
 }
Ejemplo n.º 2
0
 public void Apply(CalendarItemCreated @event)
 {
     service.Events.Insert(new Event
     {
         ICalUID = @event.Item.Id,
         Summary = @event.Item.Title,
         Description = @event.Item.Note,
         Location = @event.Item.Location,
         Start = ToGoogleEventDateTime(@event.Item.Start, @event.Item.IsAllDay),
         End = ToGoogleEventDateTime(@event.Item.End, @event.Item.IsAllDay)
     }, calendarId).Execute();
 }