Files
Wino-Mail/Wino.Core.Domain/Models/Synchronization/CalendarSynchronizationOptions.cs

31 lines
881 B
C#
Raw Normal View History

2024-12-24 18:30:25 +01:00
using System;
using System.Collections.Generic;
using Wino.Core.Domain.Enums;
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Models.Synchronization;
public class CalendarSynchronizationOptions
2024-12-24 18:30:25 +01:00
{
2025-02-16 11:54:23 +01:00
/// <summary>
/// Unique id of synchronization.
/// </summary>
public Guid Id { get; } = Guid.NewGuid();
2024-12-24 18:30:25 +01:00
2025-02-16 11:54:23 +01:00
/// <summary>
/// Account to execute synchronization for.
/// </summary>
public Guid AccountId { get; set; }
2024-12-24 18:30:25 +01:00
2025-02-16 11:54:23 +01:00
/// <summary>
/// Type of the synchronization to be performed.
/// </summary>
public CalendarSynchronizationType Type { get; set; }
2024-12-24 18:30:25 +01:00
2025-02-16 11:54:23 +01:00
/// <summary>
/// Calendar ids to synchronize.
/// </summary>
public List<Guid> SynchronizationCalendarIds { get; set; }
2024-12-24 18:30:25 +01:00
2025-02-16 11:54:23 +01:00
public override string ToString() => $"Type: {Type}, Calendars: {(SynchronizationCalendarIds == null ? "All" : string.Join(",", SynchronizationCalendarIds))}";
2024-12-24 18:30:25 +01:00
}