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; }
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 {