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

52 lines
1.2 KiB
C#
Raw Normal View History

using System;
using SQLite;
using Wino.Core.Domain.Interfaces;
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Entities.Calendar;
public class AccountCalendar : IAccountCalendar
{
2025-02-16 11:54:23 +01:00
[PrimaryKey]
public Guid Id { get; set; } = Guid.NewGuid();
[NotNull]
public string RemoteCalendarId { get; set; } = string.Empty;
[NotNull]
2025-02-16 11:54:23 +01:00
public Guid AccountId { get; set; }
[NotNull]
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public string? Location { get; set; }
public string? TimeZone { get; set; }
public string? AccessRole { get; set; }
public bool IsPrimary { get; set; } = false;
public string? BackgroundColor { get; set; }
public string? ForegroundColor { get; set; }
public DateTime CreatedDate { get; set; }
public DateTime LastModified { get; set; }
public DateTime? LastSyncTime { get; set; }
public string? SynchronizationDeltaToken { get; set; }
public bool IsDeleted { get; set; } = false;
2025-02-16 11:54:23 +01:00
public bool IsExtended { get; set; } = true;
2025-02-16 11:54:23 +01:00
/// <summary>
/// Unused for now.
/// </summary>
public string TextColorHex { get; set; }
public string BackgroundColorHex { get; set; }
}