コード例 #1
0
ファイル: FakeStore.cs プロジェクト: asgerhallas/Exchanger
 public void Apply(CalendarItemCreated @event)
 {
     Events.Add(@event);
 }
コード例 #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();
 }