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