16
Wino.Core.Domain/Entities/Calendar/AccountCalendar.cs
Normal file
16
Wino.Core.Domain/Entities/Calendar/AccountCalendar.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using SQLite;
|
||||
|
||||
namespace Wino.Core.Domain.Entities.Calendar
|
||||
{
|
||||
public class AccountCalendar
|
||||
{
|
||||
[PrimaryKey]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid AccountId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string ColorHex { get; set; }
|
||||
public string TimeZoneId { get; set; }
|
||||
}
|
||||
}
|
||||
16
Wino.Core.Domain/Entities/Calendar/Attendee.cs
Normal file
16
Wino.Core.Domain/Entities/Calendar/Attendee.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using SQLite;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Entities.Calendar
|
||||
{
|
||||
public class Attendee
|
||||
{
|
||||
[PrimaryKey]
|
||||
public Guid Id { get; set; }
|
||||
public Guid EventId { get; set; }
|
||||
public Guid ContactId { get; set; }
|
||||
public AttendeeStatus Status { get; set; }
|
||||
public bool IsOrganizer { get; set; }
|
||||
}
|
||||
}
|
||||
24
Wino.Core.Domain/Entities/Calendar/CalendarItem.cs
Normal file
24
Wino.Core.Domain/Entities/Calendar/CalendarItem.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using SQLite;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Entities.Calendar
|
||||
{
|
||||
public class CalendarItem
|
||||
{
|
||||
[PrimaryKey]
|
||||
public Guid Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Location { get; set; }
|
||||
public DateTimeOffset StartTime { get; set; }
|
||||
public DateTimeOffset EndTime { get; set; }
|
||||
public bool IsAllDay { get; set; }
|
||||
public Guid? RecurrenceRuleId { get; set; }
|
||||
public CalendarItemStatus Status { get; set; }
|
||||
public CalendarItemVisibility Visibility { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
public Guid CalendarId { get; set; }
|
||||
}
|
||||
}
|
||||
20
Wino.Core.Domain/Entities/Calendar/RecurrenceRule.cs
Normal file
20
Wino.Core.Domain/Entities/Calendar/RecurrenceRule.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using SQLite;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Entities.Calendar
|
||||
{
|
||||
public class RecurrenceRule
|
||||
{
|
||||
[PrimaryKey]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid CalendarItemId { get; set; }
|
||||
public CalendarItemRecurrenceFrequency Frequency { get; set; }
|
||||
public int Interval { get; set; }
|
||||
public string DaysOfWeek { get; set; }
|
||||
public DateTimeOffset StartDate { get; set; }
|
||||
public DateTimeOffset EndDate { get; set; }
|
||||
public int Occurrences { get; set; }
|
||||
}
|
||||
}
|
||||
16
Wino.Core.Domain/Entities/Calendar/Reminder.cs
Normal file
16
Wino.Core.Domain/Entities/Calendar/Reminder.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using SQLite;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Domain.Entities.Calendar
|
||||
{
|
||||
public class Reminder
|
||||
{
|
||||
[PrimaryKey]
|
||||
public Guid Id { get; set; }
|
||||
public Guid CalendarItemId { get; set; }
|
||||
|
||||
public DateTimeOffset ReminderTime { get; set; }
|
||||
public CalendarItemReminderType ReminderType { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user