2024-11-10 23:28:25 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using Itenso.TimePeriod;
|
2024-12-28 23:17:16 +01:00
|
|
|
|
using Wino.Core.Domain.Collections;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.Domain.Models.Calendar
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents a day in the calendar.
|
|
|
|
|
|
/// Can hold events, appointments, wheather status etc.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class CalendarDayModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public TimeRange Period { get; }
|
2024-12-28 23:17:16 +01:00
|
|
|
|
public CalendarEventCollection EventsCollection { get; } = new CalendarEventCollection();
|
2024-12-29 19:37:36 +01:00
|
|
|
|
|
2024-11-10 23:28:25 +01:00
|
|
|
|
public CalendarDayModel(DateTime representingDate, CalendarRenderOptions calendarRenderOptions)
|
|
|
|
|
|
{
|
|
|
|
|
|
RepresentingDate = representingDate;
|
|
|
|
|
|
Period = new TimeRange(representingDate, representingDate.AddDays(1));
|
|
|
|
|
|
CalendarRenderOptions = calendarRenderOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DateTime RepresentingDate { get; }
|
|
|
|
|
|
public CalendarRenderOptions CalendarRenderOptions { get; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|