mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
20 lines
558 B
C#
20 lines
558 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Storage.Models
|
|
{
|
|
public class StorageSettings
|
|
{
|
|
public StorageProvider Provider { get; set; }
|
|
public string ConfigurationStr { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public JObject Configuration
|
|
{
|
|
get => JsonConvert.DeserializeObject<JObject>(string.IsNullOrEmpty(ConfigurationStr) ? "{}" : ConfigurationStr);
|
|
set => ConfigurationStr = value.ToString();
|
|
}
|
|
}
|
|
}
|