From 56eea6a626c439e631433500357ced09f72a6fb2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 8 Jul 2013 12:13:21 -0400 Subject: added some user access settings --- MediaBrowser.Model/Configuration/ManualLoginCategory.cs | 10 ++++++++++ MediaBrowser.Model/Configuration/ServerConfiguration.cs | 8 ++++++-- MediaBrowser.Model/Configuration/UserConfiguration.cs | 10 +++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 MediaBrowser.Model/Configuration/ManualLoginCategory.cs (limited to 'MediaBrowser.Model/Configuration') diff --git a/MediaBrowser.Model/Configuration/ManualLoginCategory.cs b/MediaBrowser.Model/Configuration/ManualLoginCategory.cs new file mode 100644 index 000000000..20e873437 --- /dev/null +++ b/MediaBrowser.Model/Configuration/ManualLoginCategory.cs @@ -0,0 +1,10 @@ + +namespace MediaBrowser.Model.Configuration +{ + public enum ManualLoginCategory + { + Mobile, + MediaBrowserTheater, + Roku + } +} diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index fadb4aefa..2cb0eef48 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -1,6 +1,6 @@ using MediaBrowser.Model.Entities; -using System; using MediaBrowser.Model.Weather; +using System; namespace MediaBrowser.Model.Configuration { @@ -20,7 +20,7 @@ namespace MediaBrowser.Model.Configuration /// /// The weather unit. public WeatherUnits WeatherUnit { get; set; } - + /// /// Gets or sets a value indicating whether [enable HTTP level logging]. /// @@ -223,6 +223,8 @@ namespace MediaBrowser.Model.Configuration /// The dashboard source path. public string DashboardSourcePath { get; set; } + public ManualLoginCategory[] ManualLoginClients { get; set; } + /// /// Initializes a new instance of the class. /// @@ -249,6 +251,8 @@ namespace MediaBrowser.Model.Configuration EnableInternetProviders = true; //initial installs will need these InternetProviderExcludeTypes = new string[] { }; + ManualLoginClients = new ManualLoginCategory[] { }; + MetadataRefreshDays = 30; PreferredMetadataLanguage = "en"; MetadataCountryCode = "US"; diff --git a/MediaBrowser.Model/Configuration/UserConfiguration.cs b/MediaBrowser.Model/Configuration/UserConfiguration.cs index 45ef03b8d..35e9b3b0f 100644 --- a/MediaBrowser.Model/Configuration/UserConfiguration.cs +++ b/MediaBrowser.Model/Configuration/UserConfiguration.cs @@ -47,7 +47,15 @@ namespace MediaBrowser.Model.Configuration /// /// true if [use forced subtitles only]; otherwise, false. public bool UseForcedSubtitlesOnly { get; set; } - + + /// + /// Gets or sets a value indicating whether this instance is hidden. + /// + /// true if this instance is hidden; otherwise, false. + public bool IsHidden { get; set; } + + public bool IsDisabled { get; set; } + /// /// Initializes a new instance of the class. /// -- cgit v1.2.3