Files
Wino-Mail/Wino.Core.Domain/Entities/Calendar/AccountCalendar.cs
T

35 lines
1.1 KiB
C#
Raw Normal View History

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;
using Wino.Core.Domain.Enums;
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-04-14 17:52:38 +02:00
public bool IsReadOnly { get; set; }
public bool IsSynchronizationEnabled { get; set; } = true;
2025-02-16 11:54:23 +01:00
public bool IsExtended { get; set; } = true;
public CalendarItemShowAs DefaultShowAs { get; set; } = CalendarItemShowAs.Busy;
2025-02-16 11:54:23 +01:00
/// <summary>
/// Unused for now.
/// </summary>
public string TextColorHex { get; set; }
public string BackgroundColorHex { get; set; }
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
}