2024-04-18 01:44:37 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
namespace Wino.Core.Domain.Models.MailItem;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Defines a single rule for toggling user actions if needed.
|
|
|
|
|
|
/// For example: If user wants to mark a mail as read, but it's already read, then it should be marked as unread.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="SourceAction"></param>
|
|
|
|
|
|
/// <param name="TargetAction"></param>
|
|
|
|
|
|
/// <param name="Condition"></param>
|
|
|
|
|
|
public record ToggleRequestRule(MailOperation SourceAction, MailOperation TargetAction, Func<IMailItem, bool> Condition);
|