mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 13:10:28 +01:00
added optional SeasonUserData
This commit is contained in:
@@ -366,6 +366,11 @@ namespace MediaBrowser.Model.Dto
|
||||
/// </summary>
|
||||
/// <value>The user data.</value>
|
||||
public UserItemDataDto UserData { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the season user data.
|
||||
/// </summary>
|
||||
/// <value>The season user data.</value>
|
||||
public UserItemDataDto SeasonUserData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the recursive item count.
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Querying;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public class DtoOptions
|
||||
{
|
||||
private static readonly List<ItemFields> DefaultExcludedFields = new List<ItemFields>
|
||||
{
|
||||
ItemFields.SeasonUserData
|
||||
};
|
||||
|
||||
public List<ItemFields> Fields { get; set; }
|
||||
public List<ImageType> ImageTypes { get; set; }
|
||||
public int ImageTypeLimit { get; set; }
|
||||
@@ -14,9 +21,17 @@ namespace MediaBrowser.Model.Dto
|
||||
public DtoOptions()
|
||||
{
|
||||
Fields = new List<ItemFields>();
|
||||
ImageTypes = new List<ImageType>();
|
||||
ImageTypeLimit = int.MaxValue;
|
||||
EnableImages = true;
|
||||
|
||||
Fields = Enum.GetNames(typeof (ItemFields))
|
||||
.Select(i => (ItemFields) Enum.Parse(typeof (ItemFields), i, true))
|
||||
.Except(DefaultExcludedFields)
|
||||
.ToList();
|
||||
|
||||
ImageTypes = Enum.GetNames(typeof(ImageType))
|
||||
.Select(i => (ImageType)Enum.Parse(typeof(ImageType), i, true))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public int GetImageLimit(ImageType type)
|
||||
|
||||
@@ -234,6 +234,11 @@ namespace MediaBrowser.Model.Querying
|
||||
/// <summary>
|
||||
/// The media streams
|
||||
/// </summary>
|
||||
MediaStreams
|
||||
MediaStreams,
|
||||
|
||||
/// <summary>
|
||||
/// The season user data
|
||||
/// </summary>
|
||||
SeasonUserData
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user