mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
32 lines
910 B
C#
32 lines
910 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 class Default
|
|
{
|
|
public string SubjectExample { get; set; }
|
|
public string BodyExample { get; set; }
|
|
public bool CanIncludeCustomerEmail { get; set; }
|
|
public string RecipientExample { get; set; }
|
|
}
|
|
|
|
public string Trigger { get; set; }
|
|
|
|
public string Description { 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();
|
|
public bool ServerTrigger { get; set; }
|
|
}
|