mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-24 01:14:20 +01:00
Refactor email endpoints
This commit is contained in:
committed by
rockstardev
parent
78f33f0ca4
commit
be8ecb823e
@@ -1,4 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BTCPayServer.Client.Models;
|
||||
|
||||
@@ -7,14 +9,11 @@ public class EmailSettingsData
|
||||
public string Server { get; set; }
|
||||
public int? Port { get; set; }
|
||||
public string Login { get; set; }
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
public string Password { get; set; }
|
||||
public bool? PasswordSet { get; set; }
|
||||
public string From { get; set; }
|
||||
public bool DisableCertificateCheck { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public bool EnabledCertificateCheck
|
||||
{
|
||||
get => !DisableCertificateCheck;
|
||||
set { DisableCertificateCheck = !value; }
|
||||
}
|
||||
[JsonExtensionData]
|
||||
public IDictionary<string, JToken> AdditionalData { get; set; } = new Dictionary<string, JToken>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user