2011-11-13 07:27:16 +00:00
|
|
|
|
using System.ComponentModel;
|
2011-10-01 07:04:06 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
2011-10-07 23:24:28 +00:00
|
|
|
|
using System.Web.Mvc;
|
2011-11-13 07:27:16 +00:00
|
|
|
|
using NzbDrone.Common.Model;
|
2011-10-01 07:04:06 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Models
|
|
|
|
|
{
|
|
|
|
|
public class SystemSettingsModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Port")]
|
|
|
|
|
[Description("Port that NzbDrone runs on")]
|
|
|
|
|
[Range(1, 65535, ErrorMessage = "Port must be between 1 and 65535")]
|
2012-02-25 21:21:41 +00:00
|
|
|
|
[Required(ErrorMessage = "Port must be between 1 and 65535")]
|
2011-10-01 07:04:06 +00:00
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Launch Browser")]
|
2012-01-17 07:12:22 +00:00
|
|
|
|
[Description("Start web browser when NzbDrone starts?")]
|
2011-10-01 07:04:06 +00:00
|
|
|
|
public bool LaunchBrowser { get; set; }
|
2011-10-07 23:24:28 +00:00
|
|
|
|
|
|
|
|
|
[DisplayName("Authentication")]
|
2012-01-17 07:12:22 +00:00
|
|
|
|
[Description("Secure the server with authentication?")]
|
2011-10-07 23:24:28 +00:00
|
|
|
|
public AuthenticationType AuthenticationType { get; set; }
|
|
|
|
|
|
|
|
|
|
public SelectList AuthTypeSelectList { get; set; }
|
2012-09-04 07:11:27 +00:00
|
|
|
|
|
|
|
|
|
[DisplayName("Recycle Bin")]
|
|
|
|
|
[Description("Path to NzbDrone's internal recycle bin (optional)")]
|
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
|
|
|
public string RecycleBin { get; set; }
|
2011-10-01 07:04:06 +00:00
|
|
|
|
}
|
|
|
|
|
}
|