2025-12-30 11:59:54 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Wino.Core.Domain.Entities.Calendar;
|
|
|
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.Domain.Models.Calendar;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Encapsulates the options for preparing calendar operation requests.
|
|
|
|
|
/// </summary>
|
2026-04-08 23:46:02 +02:00
|
|
|
/// <param name="Operation">Calendar operation to execute (Create, Update, ChangeStartAndEndDate, Delete, Accept, Decline, Tentative).</param>
|
2025-12-30 11:59:54 +01:00
|
|
|
/// <param name="CalendarItem">Calendar item to operate on.</param>
|
|
|
|
|
/// <param name="Attendees">List of attendees for the calendar event.</param>
|
2026-01-03 19:33:36 +01:00
|
|
|
/// <param name="ResponseMessage">Optional message to include with event responses (Accept, Decline, Tentative).</param>
|
2026-01-05 00:21:07 +01:00
|
|
|
/// <param name="OriginalItem">Original calendar item state before update (for revert capability).</param>
|
|
|
|
|
/// <param name="OriginalAttendees">Original attendees list before update (for revert capability).</param>
|
|
|
|
|
public record CalendarOperationPreparationRequest(
|
|
|
|
|
CalendarSynchronizerOperation Operation,
|
2026-03-07 17:13:48 +01:00
|
|
|
CalendarItem CalendarItem = null,
|
|
|
|
|
List<CalendarEventAttendee> Attendees = null,
|
2026-01-05 00:21:07 +01:00
|
|
|
string ResponseMessage = null,
|
|
|
|
|
CalendarItem OriginalItem = null,
|
2026-03-07 17:13:48 +01:00
|
|
|
List<CalendarEventAttendee> OriginalAttendees = null,
|
|
|
|
|
CalendarEventComposeResult ComposeResult = null);
|