rework checkboxes for block unrated items

This commit is contained in:
Luke Pulverenti
2014-02-21 10:24:29 -05:00
parent aeb43e229a
commit 6e5d90bafe
17 changed files with 59 additions and 26 deletions

View File

@@ -12,12 +12,6 @@ namespace MediaBrowser.Model.Configuration
/// <value>The max parental rating.</value>
public int? MaxParentalRating { get; set; }
/// <summary>
/// Gets or sets a value indicating whether items with no rating information should be blocked.
/// </summary>
/// <value><c>true</c> if items with no rating info should be blocked; otherwise, <c>false</c>.</value>
public bool BlockNotRated { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is administrator.
/// </summary>
@@ -54,13 +48,6 @@ namespace MediaBrowser.Model.Configuration
public bool DisplayUnairedEpisodes { get; set; }
public bool EnableRemoteControlOfOtherUsers { get; set; }
public bool BlockUnratedMovies { get; set; }
public bool BlockUnratedTrailers { get; set; }
public bool BlockUnratedSeries { get; set; }
public bool BlockUnratedMusic { get; set; }
public bool BlockUnratedGames { get; set; }
public bool BlockUnratedBooks { get; set; }
public bool EnableLiveTvManagement { get; set; }
public bool EnableLiveTvAccess { get; set; }
@@ -68,6 +55,8 @@ namespace MediaBrowser.Model.Configuration
public string[] BlockedMediaFolders { get; set; }
public UnratedItem[] BlockUnratedItems { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
/// </summary>
@@ -75,13 +64,26 @@ namespace MediaBrowser.Model.Configuration
{
IsAdministrator = true;
EnableRemoteControlOfOtherUsers = true;
BlockNotRated = false;
EnableLiveTvManagement = true;
EnableMediaPlayback = true;
EnableLiveTvAccess = true;
BlockedMediaFolders = new string[] { };
BlockUnratedItems = new UnratedItem[] { };
}
}
public enum UnratedItem
{
Movie,
Trailer,
Series,
Music,
Game,
Book,
LiveTvChannel,
LiveTvProgram,
Other
}
}