mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Add holiday flag to data
This commit is contained in:
@@ -5,10 +5,11 @@ using JetBrains.Annotations;
|
||||
namespace ChrisKaczor.HomeMonitor.Calendar.Service.Models;
|
||||
|
||||
[PublicAPI]
|
||||
public class CalendarEntry(Occurrence occurrence)
|
||||
public class CalendarEntry(Occurrence occurrence, bool isHoliday)
|
||||
{
|
||||
public string Summary { get; set; } = ((CalendarEvent)occurrence.Source).Summary;
|
||||
public bool IsAllDay { get; set; } = ((CalendarEvent)occurrence.Source).IsAllDay;
|
||||
public DateTimeOffset Start { get; set; } = occurrence.Period.StartTime.AsDateTimeOffset;
|
||||
public DateTimeOffset End { get; set; } = occurrence.Period.EndTime.AsDateTimeOffset;
|
||||
public bool IsHoliday { get; set; } = isHoliday;
|
||||
}
|
||||
Reference in New Issue
Block a user