mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
31 lines
712 B
C#
31 lines
712 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using BTCPayServer.Services.Mails;
|
|
using BTCPayServer.Validation;
|
|
|
|
namespace BTCPayServer.Models.ServerViewModels
|
|
{
|
|
public class EmailsViewModel
|
|
{
|
|
public EmailsViewModel()
|
|
{
|
|
|
|
}
|
|
public EmailsViewModel(EmailSettings settings)
|
|
{
|
|
Settings = settings;
|
|
PasswordSet = !string.IsNullOrEmpty(settings?.Password);
|
|
}
|
|
public EmailSettings Settings
|
|
{
|
|
get; set;
|
|
}
|
|
public bool PasswordSet { get; set; }
|
|
[MailboxAddressAttribute]
|
|
[Display(Name = "Test Email")]
|
|
public string TestEmail
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|