mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
20 lines
568 B
C#
20 lines
568 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; }
|
|||
|
|
|||
|
[NotMapped]
|
|||
|
public JObject Configuration
|
|||
|
{
|
|||
|
get => JsonConvert.DeserializeObject<JObject>(string.IsNullOrEmpty(ConfigurationStr) ? "{}" : ConfigurationStr);
|
|||
|
set => ConfigurationStr = value.ToString();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|