2011-11-13 08:27:16 +01:00
|
|
|
|
using System.ComponentModel;
|
2011-10-01 09:04:06 +02:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
2011-10-08 01:24:28 +02:00
|
|
|
|
using System.Web.Mvc;
|
2011-11-13 08:27:16 +01:00
|
|
|
|
using NzbDrone.Common.Model;
|
2011-10-01 09:04:06 +02: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")]
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Launch Browser")]
|
2012-01-17 08:12:22 +01:00
|
|
|
|
[Description("Start web browser when NzbDrone starts?")]
|
2011-10-01 09:04:06 +02:00
|
|
|
|
public bool LaunchBrowser { get; set; }
|
2011-10-08 01:24:28 +02:00
|
|
|
|
|
|
|
|
|
[DisplayName("Authentication")]
|
2012-01-17 08:12:22 +01:00
|
|
|
|
[Description("Secure the server with authentication?")]
|
2011-10-08 01:24:28 +02:00
|
|
|
|
public AuthenticationType AuthenticationType { get; set; }
|
|
|
|
|
|
|
|
|
|
public SelectList AuthTypeSelectList { get; set; }
|
2011-10-01 09:04:06 +02:00
|
|
|
|
}
|
|
|
|
|
}
|