btcpayserver/BTCPayServer/Models/ConfirmModel.cs

34 lines
988 B
C#
Raw Normal View History

using System;
2017-10-23 22:55:46 +09:00
namespace BTCPayServer.Models
{
public class ConfirmModel
{
private const string ButtonClassDefault = "btn-danger";
public ConfirmModel() {}
public ConfirmModel(string title, string desc, string action = null, string buttonClass = ButtonClassDefault, string actionUrl = null)
{
Title = title;
Description = desc;
Action = action;
ButtonClass = buttonClass;
if (Description.Contains("<strong>", StringComparison.InvariantCultureIgnoreCase))
{
DescriptionHtml = true;
}
ActionUrl = actionUrl;
}
2020-07-13 08:13:27 +02:00
public string Title { get; set; }
public string Description { get; set; }
public bool DescriptionHtml { get; set; }
public string Action { get; set; }
public string ButtonClass { get; set; } = ButtonClassDefault;
2020-02-26 10:26:38 +01:00
public string ActionUrl { get; set; }
}
2017-10-23 22:55:46 +09:00
}