btcpayserver/BTCPayServer/Services/PoliciesSettings.cs

30 lines
961 B
C#
Raw Normal View History

2017-09-27 14:18:09 +09:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2017-09-27 14:18:09 +09:00
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Services.Apps;
2017-12-04 00:55:39 +09:00
using Newtonsoft.Json;
2017-09-27 14:18:09 +09:00
namespace BTCPayServer.Services
{
public class PoliciesSettings
{
[Display(Name = "Requires a confirmation mail for registering")]
public bool RequiresConfirmedEmail { get; set; }
2017-12-04 00:55:39 +09:00
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
[Display(Name = "Disable registration")]
2017-12-04 00:55:39 +09:00
public bool LockSubscription { get; set; }
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
[Display(Name = "Discourage search engines from indexing this site")]
public bool DiscourageSearchEngines { get; set; }
[Display(Name = "Display app on website root")]
public string RootAppId { get; set; }
public AppType? RootAppType { get; set; }
}
2017-09-27 14:18:09 +09:00
}