Lowercase CollectionTypeOptions to match legacy experience (#11272)
This commit is contained in:
@@ -1,16 +1,49 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// The collection type options.
|
||||
/// </summary>
|
||||
public enum CollectionTypeOptions
|
||||
{
|
||||
public enum CollectionTypeOptions
|
||||
{
|
||||
Movies = 0,
|
||||
TvShows = 1,
|
||||
Music = 2,
|
||||
MusicVideos = 3,
|
||||
HomeVideos = 4,
|
||||
BoxSets = 5,
|
||||
Books = 6,
|
||||
Mixed = 7
|
||||
}
|
||||
/// <summary>
|
||||
/// Movies.
|
||||
/// </summary>
|
||||
movies = 0,
|
||||
|
||||
/// <summary>
|
||||
/// TV Shows.
|
||||
/// </summary>
|
||||
tvshows = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Music.
|
||||
/// </summary>
|
||||
music = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Music Videos.
|
||||
/// </summary>
|
||||
musicvideos = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Home Videos (and Photos).
|
||||
/// </summary>
|
||||
homevideos = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Box Sets.
|
||||
/// </summary>
|
||||
boxsets = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Books.
|
||||
/// </summary>
|
||||
books = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Mixed Movies and TV Shows.
|
||||
/// </summary>
|
||||
mixed = 7
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ namespace MediaBrowser.Model.Entities
|
||||
/// Gets or sets the type of the collection.
|
||||
/// </summary>
|
||||
/// <value>The type of the collection.</value>
|
||||
[JsonConverter(typeof(JsonLowerCaseConverter<CollectionTypeOptions?>))]
|
||||
public CollectionTypeOptions? CollectionType { get; set; }
|
||||
|
||||
public LibraryOptions LibraryOptions { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user