コード例 #1
0
 public Event(GoogleEvent googleEvent)
 {
     Id            = googleEvent.Id;
     Summary       = googleEvent.Summary;
     LastOccurence = googleEvent.IsLongMultiDayEvent ? DateTimeOffset.Now.Date : googleEvent.StartDate;
     Occurences    = 1;
     Action        = googleEvent.IsLongMultiDayEvent ? Action.Warning : Action.None;
 }
コード例 #2
0
 public void UpdateEvent(GoogleEvent googleEvent)
 {
     Occurences++;
     Summary       = googleEvent.Summary;
     LastOccurence = googleEvent.IsLongMultiDayEvent ? DateTimeOffset.Now.Date : googleEvent.StartDate;
     if (googleEvent.IsLongMultiDayEvent)
     {
         Action = Action.Warning;
     }
     else
     {
         Action = Occurences switch
         {