added some user access settings

This commit is contained in:
Luke Pulverenti
2013-07-08 12:13:21 -04:00
parent 6992d31155
commit 56eea6a626
13 changed files with 180 additions and 19 deletions

View File

@@ -0,0 +1,10 @@

namespace MediaBrowser.Model.Configuration
{
public enum ManualLoginCategory
{
Mobile,
MediaBrowserTheater,
Roku
}
}

View File

@@ -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
/// </summary>
/// <value>The weather unit.</value>
public WeatherUnits WeatherUnit { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable HTTP level logging].
/// </summary>
@@ -223,6 +223,8 @@ namespace MediaBrowser.Model.Configuration
/// <value>The dashboard source path.</value>
public string DashboardSourcePath { get; set; }
public ManualLoginCategory[] ManualLoginClients { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
@@ -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";

View File

@@ -47,7 +47,15 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
/// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
public bool UseForcedSubtitlesOnly { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is hidden.
/// </summary>
/// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
public bool IsHidden { get; set; }
public bool IsDisabled { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
/// </summary>