Files
btcpayserver/BTCPayServer/Plugins/Emails/Views/EmailTriggerViewModel.cs
2025-10-19 22:31:24 +09:00

24 lines
758 B
C#

using System.Collections.Generic;
namespace BTCPayServer.Plugins.Emails.Views;
/// <summary>
/// This view model is used in StoreEmailRulesManage.cshtml, to display the different triggers that can be used to send emails
/// </summary>
public class EmailTriggerViewModel
{
public string Type { get; set; }
public string Description { get; set; }
public string SubjectExample { get; set; }
public string BodyExample { get; set; }
public bool CanIncludeCustomerEmail { get; set; }
public class PlaceHolder(string name, string description)
{
public string Name { get; set; } = name;
public string Description { get; set; } = description;
}
public List<PlaceHolder> PlaceHolders { get; set; } = new();
}