mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 12:58:28 +01:00
Add GPL modules
This commit is contained in:
85
MediaBrowser.Model/Channels/ChannelFeatures.cs
Normal file
85
MediaBrowser.Model/Channels/ChannelFeatures.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public class ChannelFeatures
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance can search.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
|
||||
public bool CanSearch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the media types.
|
||||
/// </summary>
|
||||
/// <value>The media types.</value>
|
||||
public ChannelMediaType[] MediaTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the content types.
|
||||
/// </summary>
|
||||
/// <value>The content types.</value>
|
||||
public ChannelMediaContentType[] ContentTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Represents the maximum number of records the channel allows retrieving at a time
|
||||
/// </summary>
|
||||
public int? MaxPageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the automatic refresh levels.
|
||||
/// </summary>
|
||||
/// <value>The automatic refresh levels.</value>
|
||||
public int? AutoRefreshLevels { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the default sort orders.
|
||||
/// </summary>
|
||||
/// <value>The default sort orders.</value>
|
||||
public ChannelItemSortField[] DefaultSortFields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if a sort ascending/descending toggle is supported or not.
|
||||
/// </summary>
|
||||
public bool SupportsSortOrderToggle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports latest media].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports latest media]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsLatestMedia { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance can filter.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can filter; otherwise, <c>false</c>.</value>
|
||||
public bool CanFilter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports content downloading].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports content downloading]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsContentDownloading { get; set; }
|
||||
|
||||
public ChannelFeatures()
|
||||
{
|
||||
MediaTypes = new ChannelMediaType[] { };
|
||||
ContentTypes = new ChannelMediaContentType[] { };
|
||||
|
||||
DefaultSortFields = new ChannelItemSortField[] { };
|
||||
}
|
||||
}
|
||||
}
|
||||
17
MediaBrowser.Model/Channels/ChannelFolderType.cs
Normal file
17
MediaBrowser.Model/Channels/ChannelFolderType.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelFolderType
|
||||
{
|
||||
Container = 0,
|
||||
|
||||
MusicAlbum = 1,
|
||||
|
||||
PhotoAlbum = 2,
|
||||
|
||||
MusicArtist = 3,
|
||||
|
||||
Series = 4,
|
||||
|
||||
Season = 5
|
||||
}
|
||||
}
|
||||
30
MediaBrowser.Model/Channels/ChannelInfo.cs
Normal file
30
MediaBrowser.Model/Channels/ChannelInfo.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public class ChannelInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the home page URL.
|
||||
/// </summary>
|
||||
/// <value>The home page URL.</value>
|
||||
public string HomePageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the features.
|
||||
/// </summary>
|
||||
/// <value>The features.</value>
|
||||
public ChannelFeatures Features { get; set; }
|
||||
}
|
||||
}
|
||||
13
MediaBrowser.Model/Channels/ChannelItemSortField.cs
Normal file
13
MediaBrowser.Model/Channels/ChannelItemSortField.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelItemSortField
|
||||
{
|
||||
Name = 0,
|
||||
CommunityRating = 1,
|
||||
PremiereDate = 2,
|
||||
DateCreated = 3,
|
||||
Runtime = 4,
|
||||
PlayCount = 5,
|
||||
CommunityPlayCount = 6
|
||||
}
|
||||
}
|
||||
23
MediaBrowser.Model/Channels/ChannelMediaContentType.cs
Normal file
23
MediaBrowser.Model/Channels/ChannelMediaContentType.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelMediaContentType
|
||||
{
|
||||
Clip = 0,
|
||||
|
||||
Podcast = 1,
|
||||
|
||||
Trailer = 2,
|
||||
|
||||
Movie = 3,
|
||||
|
||||
Episode = 4,
|
||||
|
||||
Song = 5,
|
||||
|
||||
MovieExtra = 6,
|
||||
|
||||
TvExtra = 7,
|
||||
|
||||
GameExtra = 8
|
||||
}
|
||||
}
|
||||
11
MediaBrowser.Model/Channels/ChannelMediaType.cs
Normal file
11
MediaBrowser.Model/Channels/ChannelMediaType.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public enum ChannelMediaType
|
||||
{
|
||||
Audio = 0,
|
||||
|
||||
Video = 1,
|
||||
|
||||
Photo = 2
|
||||
}
|
||||
}
|
||||
52
MediaBrowser.Model/Channels/ChannelQuery.cs
Normal file
52
MediaBrowser.Model/Channels/ChannelQuery.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Querying;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public class ChannelQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Fields to return within the items, in addition to basic information
|
||||
/// </summary>
|
||||
/// <value>The fields.</value>
|
||||
public ItemFields[] Fields { get; set; }
|
||||
public bool? EnableImages { get; set; }
|
||||
public int? ImageTypeLimit { get; set; }
|
||||
public ImageType[] EnableImageTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user identifier.
|
||||
/// </summary>
|
||||
/// <value>The user identifier.</value>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Skips over a given number of items within the results. Use for paging.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of items to return
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports latest items].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports latest items]; otherwise, <c>false</c>.</value>
|
||||
public bool? SupportsLatestItems { get; set; }
|
||||
|
||||
public bool? SupportsMediaDeletion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is favorite.
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c>.</value>
|
||||
public bool? IsFavorite { get; set; }
|
||||
public bool? IsRecordingsFolder { get; set; }
|
||||
public bool RefreshLatestChannelItems { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user