Add another national day source since DOTY is broken

This commit is contained in:
2026-04-01 11:58:51 -04:00
parent 8de424087f
commit c088ab8292
11 changed files with 155 additions and 17 deletions

View File

@@ -0,0 +1,31 @@
using JetBrains.Annotations;
using System.Diagnostics.CodeAnalysis;
namespace ChrisKaczor.HomeMonitor.Calendar.Service.Models;
[PublicAPI]
public class NationalDay
{
public required string Name { get; set; }
public required string Url { get; set; }
public required string Excerpt { get; set; }
public required string Type { get; set; }
[SetsRequiredMembers]
public NationalDay(HolidayCalendar.Item item)
{
Name = item.Name;
Url = item.Url;
Excerpt = item.Excerpt;
Type = item.Type;
}
[SetsRequiredMembers]
public NationalDay(DaysOfTheYear.Entry entry)
{
Name = entry.Name;
Url = entry.Url;
Excerpt = entry.Excerpt;
Type = entry.Type;
}
}