namespace Spectre.Console
{
///
/// Represents a calendar event.
///
public sealed class CalendarEvent
{
///
/// Gets the description of the calendar event.
///
public string Description { get; }
///
/// Gets the year of the calendar event.
///
public int Year { get; }
///
/// Gets the month of the calendar event.
///
public int Month { get; }
///
/// Gets the day of the calendar event.
///
public int Day { get; }
///
/// Initializes a new instance of the class.
///
/// The year of the calendar event.
/// The month of the calendar event.
/// The day of the calendar event.
public CalendarEvent(int year, int month, int day)
: this(string.Empty, year, month, day)
{
}
///
/// Initializes a new instance of the class.
///
/// The calendar event description.
/// The year of the calendar event.
/// The month of the calendar event.
/// The day of the calendar event.
public CalendarEvent(string description, int year, int month, int day)
{
Description = description ?? string.Empty;
Year = year;
Month = month;
Day = day;
}
}
}