2024-11-10 23:28:25 +01:00
|
|
|
using System;
|
|
|
|
|
using SQLite;
|
2026-01-03 19:33:36 +01:00
|
|
|
using Wino.Core.Domain.Entities.Shared;
|
2026-02-12 18:04:29 +01:00
|
|
|
using Wino.Core.Domain.Enums;
|
2024-12-29 17:41:54 +01:00
|
|
|
using Wino.Core.Domain.Interfaces;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
namespace Wino.Core.Domain.Entities.Calendar;
|
|
|
|
|
|
2025-10-31 00:51:27 +01:00
|
|
|
[Preserve]
|
2025-02-16 11:54:23 +01:00
|
|
|
public class AccountCalendar : IAccountCalendar
|
2024-11-10 23:28:25 +01:00
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
[PrimaryKey]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
public Guid AccountId { get; set; }
|
|
|
|
|
public string RemoteCalendarId { get; set; }
|
|
|
|
|
public string SynchronizationDeltaToken { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public bool IsPrimary { get; set; }
|
2026-02-12 18:04:29 +01:00
|
|
|
public bool IsSynchronizationEnabled { get; set; } = true;
|
2025-02-16 11:54:23 +01:00
|
|
|
public bool IsExtended { get; set; } = true;
|
2026-02-12 18:04:29 +01:00
|
|
|
public CalendarItemShowAs DefaultShowAs { get; set; } = CalendarItemShowAs.Busy;
|
2025-01-06 02:15:21 +01:00
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Unused for now.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string TextColorHex { get; set; }
|
|
|
|
|
public string BackgroundColorHex { get; set; }
|
2026-04-11 15:18:30 +02:00
|
|
|
public bool IsBackgroundColorUserOverridden { get; set; }
|
2025-02-16 11:54:23 +01:00
|
|
|
public string TimeZone { get; set; }
|
2026-01-03 19:33:36 +01:00
|
|
|
|
|
|
|
|
[Ignore]
|
|
|
|
|
public MailAccount MailAccount { get; set; }
|
2024-11-10 23:28:25 +01:00
|
|
|
}
|