mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
e8291eb00e
To make it available to plugins.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace BTCPayServer.Abstractions.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 actionName = null, string controllerName = null)
|
|
{
|
|
Title = title;
|
|
Description = desc;
|
|
Action = action;
|
|
ActionName = actionName;
|
|
ControllerName = controllerName;
|
|
ButtonClass = buttonClass;
|
|
|
|
if (Description.Contains("<strong>", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
DescriptionHtml = true;
|
|
}
|
|
}
|
|
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public bool DescriptionHtml { get; set; }
|
|
public string Action { get; set; }
|
|
public string ActionName { get; set; }
|
|
public string ControllerName { get; set; }
|
|
public string ButtonClass { get; set; } = ButtonClassDefault;
|
|
}
|
|
}
|