repo creation with initial code after cloning public repo
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
public class AllThemeMediaResult
|
||||
{
|
||||
public AllThemeMediaResult()
|
||||
{
|
||||
ThemeVideosResult = new ThemeMediaResult();
|
||||
|
||||
ThemeSongsResult = new ThemeMediaResult();
|
||||
|
||||
SoundtrackSongsResult = new ThemeMediaResult();
|
||||
}
|
||||
|
||||
public ThemeMediaResult ThemeVideosResult { get; set; }
|
||||
|
||||
public ThemeMediaResult ThemeSongsResult { get; set; }
|
||||
|
||||
public ThemeMediaResult SoundtrackSongsResult { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
/// <summary>
|
||||
/// Used to control the data that gets attached to DtoBaseItems.
|
||||
/// </summary>
|
||||
public enum ItemFields
|
||||
{
|
||||
/// <summary>
|
||||
/// The air time.
|
||||
/// </summary>
|
||||
AirTime,
|
||||
|
||||
/// <summary>
|
||||
/// The can delete.
|
||||
/// </summary>
|
||||
CanDelete,
|
||||
|
||||
/// <summary>
|
||||
/// The can download.
|
||||
/// </summary>
|
||||
CanDownload,
|
||||
|
||||
/// <summary>
|
||||
/// The channel information.
|
||||
/// </summary>
|
||||
ChannelInfo,
|
||||
|
||||
/// <summary>
|
||||
/// The chapters.
|
||||
/// </summary>
|
||||
Chapters,
|
||||
|
||||
/// <summary>
|
||||
/// The trickplay manifest.
|
||||
/// </summary>
|
||||
Trickplay,
|
||||
|
||||
/// <summary>
|
||||
/// The child count.
|
||||
/// </summary>
|
||||
ChildCount,
|
||||
|
||||
/// <summary>
|
||||
/// The cumulative run time ticks.
|
||||
/// </summary>
|
||||
CumulativeRunTimeTicks,
|
||||
|
||||
/// <summary>
|
||||
/// The custom rating.
|
||||
/// </summary>
|
||||
CustomRating,
|
||||
|
||||
/// <summary>
|
||||
/// The date created of the item.
|
||||
/// </summary>
|
||||
DateCreated,
|
||||
|
||||
/// <summary>
|
||||
/// The date last media added.
|
||||
/// </summary>
|
||||
DateLastMediaAdded,
|
||||
|
||||
/// <summary>
|
||||
/// Item display preferences.
|
||||
/// </summary>
|
||||
DisplayPreferencesId,
|
||||
|
||||
/// <summary>
|
||||
/// The etag.
|
||||
/// </summary>
|
||||
Etag,
|
||||
|
||||
/// <summary>
|
||||
/// The external urls.
|
||||
/// </summary>
|
||||
ExternalUrls,
|
||||
|
||||
/// <summary>
|
||||
/// Genres.
|
||||
/// </summary>
|
||||
Genres,
|
||||
|
||||
/// <summary>
|
||||
/// The item counts.
|
||||
/// </summary>
|
||||
ItemCounts,
|
||||
|
||||
/// <summary>
|
||||
/// The media source count.
|
||||
/// </summary>
|
||||
MediaSourceCount,
|
||||
|
||||
/// <summary>
|
||||
/// The media versions.
|
||||
/// </summary>
|
||||
MediaSources,
|
||||
|
||||
/// <summary>
|
||||
/// The original title.
|
||||
/// </summary>
|
||||
OriginalTitle,
|
||||
|
||||
/// <summary>
|
||||
/// The item overview.
|
||||
/// </summary>
|
||||
Overview,
|
||||
|
||||
/// <summary>
|
||||
/// The id of the item's parent.
|
||||
/// </summary>
|
||||
ParentId,
|
||||
|
||||
/// <summary>
|
||||
/// The physical path of the item.
|
||||
/// </summary>
|
||||
Path,
|
||||
|
||||
/// <summary>
|
||||
/// The list of people for the item.
|
||||
/// </summary>
|
||||
People,
|
||||
|
||||
/// <summary>
|
||||
/// Value indicating whether playback access is granted.
|
||||
/// </summary>
|
||||
PlayAccess,
|
||||
|
||||
/// <summary>
|
||||
/// The production locations.
|
||||
/// </summary>
|
||||
ProductionLocations,
|
||||
|
||||
/// <summary>
|
||||
/// The ids from IMDb, TMDb, etc.
|
||||
/// </summary>
|
||||
ProviderIds,
|
||||
|
||||
/// <summary>
|
||||
/// The aspect ratio of the primary image.
|
||||
/// </summary>
|
||||
PrimaryImageAspectRatio,
|
||||
|
||||
/// <summary>
|
||||
/// The recursive item count.
|
||||
/// </summary>
|
||||
RecursiveItemCount,
|
||||
|
||||
/// <summary>
|
||||
/// The settings.
|
||||
/// </summary>
|
||||
Settings,
|
||||
|
||||
/// <summary>
|
||||
/// The series studio.
|
||||
/// </summary>
|
||||
SeriesStudio,
|
||||
|
||||
/// <summary>
|
||||
/// The sort name of the item.
|
||||
/// </summary>
|
||||
SortName,
|
||||
|
||||
/// <summary>
|
||||
/// The special episode numbers.
|
||||
/// </summary>
|
||||
SpecialEpisodeNumbers,
|
||||
|
||||
/// <summary>
|
||||
/// The studios of the item.
|
||||
/// </summary>
|
||||
Studios,
|
||||
|
||||
/// <summary>
|
||||
/// The taglines of the item.
|
||||
/// </summary>
|
||||
Taglines,
|
||||
|
||||
/// <summary>
|
||||
/// The tags.
|
||||
/// </summary>
|
||||
Tags,
|
||||
|
||||
/// <summary>
|
||||
/// The trailer url of the item.
|
||||
/// </summary>
|
||||
RemoteTrailers,
|
||||
|
||||
/// <summary>
|
||||
/// The media streams.
|
||||
/// </summary>
|
||||
MediaStreams,
|
||||
|
||||
/// <summary>
|
||||
/// The season user data.
|
||||
/// </summary>
|
||||
SeasonUserData,
|
||||
|
||||
/// <summary>
|
||||
/// The last time metadata was refreshed.
|
||||
/// </summary>
|
||||
DateLastRefreshed,
|
||||
|
||||
/// <summary>
|
||||
/// The last time metadata was saved.
|
||||
/// </summary>
|
||||
DateLastSaved,
|
||||
|
||||
/// <summary>
|
||||
/// The refresh state.
|
||||
/// </summary>
|
||||
RefreshState,
|
||||
|
||||
/// <summary>
|
||||
/// The channel image.
|
||||
/// </summary>
|
||||
ChannelImage,
|
||||
|
||||
/// <summary>
|
||||
/// Value indicating whether media source display is enabled.
|
||||
/// </summary>
|
||||
EnableMediaSourceDisplay,
|
||||
|
||||
/// <summary>
|
||||
/// The width.
|
||||
/// </summary>
|
||||
Width,
|
||||
|
||||
/// <summary>
|
||||
/// The height.
|
||||
/// </summary>
|
||||
Height,
|
||||
|
||||
/// <summary>
|
||||
/// The external Ids.
|
||||
/// </summary>
|
||||
ExtraIds,
|
||||
|
||||
/// <summary>
|
||||
/// The local trailer count.
|
||||
/// </summary>
|
||||
LocalTrailerCount,
|
||||
|
||||
/// <summary>
|
||||
/// Value indicating whether the item is HD.
|
||||
/// </summary>
|
||||
IsHD,
|
||||
|
||||
/// <summary>
|
||||
/// The special feature count.
|
||||
/// </summary>
|
||||
SpecialFeatureCount
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum ItemFilter.
|
||||
/// </summary>
|
||||
public enum ItemFilter
|
||||
{
|
||||
/// <summary>
|
||||
/// The item is a folder.
|
||||
/// </summary>
|
||||
IsFolder = 1,
|
||||
|
||||
/// <summary>
|
||||
/// The item is not folder.
|
||||
/// </summary>
|
||||
IsNotFolder = 2,
|
||||
|
||||
/// <summary>
|
||||
/// The item is unplayed.
|
||||
/// </summary>
|
||||
IsUnplayed = 3,
|
||||
|
||||
/// <summary>
|
||||
/// The item is played.
|
||||
/// </summary>
|
||||
IsPlayed = 4,
|
||||
|
||||
/// <summary>
|
||||
/// The item is a favorite.
|
||||
/// </summary>
|
||||
IsFavorite = 5,
|
||||
|
||||
/// <summary>
|
||||
/// The item is resumable.
|
||||
/// </summary>
|
||||
IsResumable = 7,
|
||||
|
||||
/// <summary>
|
||||
/// The likes.
|
||||
/// </summary>
|
||||
Likes = 8,
|
||||
|
||||
/// <summary>
|
||||
/// The dislikes.
|
||||
/// </summary>
|
||||
Dislikes = 9,
|
||||
|
||||
/// <summary>
|
||||
/// The is favorite or likes.
|
||||
/// </summary>
|
||||
IsFavoriteOrLikes = 10
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
public class LatestItemsQuery
|
||||
{
|
||||
public LatestItemsQuery()
|
||||
{
|
||||
EnableImageTypes = Array.Empty<ImageType>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user to localize search results for.
|
||||
/// </summary>
|
||||
/// <value>The user id.</value>
|
||||
public User User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent id.
|
||||
/// Specify this to localize the search to a specific item or folder. Omit to use the root.
|
||||
/// </summary>
|
||||
/// <value>The parent id.</value>
|
||||
public Guid ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start index. Used for paging.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum number of items to return.
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the fields to return within the items, in addition to basic information.
|
||||
/// </summary>
|
||||
/// <value>The fields.</value>
|
||||
public ItemFields[] Fields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the include item types.
|
||||
/// </summary>
|
||||
/// <value>The include item types.</value>
|
||||
public BaseItemKind[] IncludeItemTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is played.
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</value>
|
||||
public bool? IsPlayed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [group items].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [group items]; otherwise, <c>false</c>.</value>
|
||||
public bool GroupItems { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [enable images].
|
||||
/// </summary>
|
||||
/// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
|
||||
public bool? EnableImages { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the image type limit.
|
||||
/// </summary>
|
||||
/// <value>The image type limit.</value>
|
||||
public int? ImageTypeLimit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the enable image types.
|
||||
/// </summary>
|
||||
/// <value>The enable image types.</value>
|
||||
public ImageType[] EnableImageTypes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.Querying;
|
||||
|
||||
public class NextUpQuery
|
||||
{
|
||||
public NextUpQuery()
|
||||
{
|
||||
EnableImageTypes = Array.Empty<ImageType>();
|
||||
EnableTotalRecordCount = true;
|
||||
NextUpDateCutoff = DateTime.MinValue;
|
||||
EnableResumable = false;
|
||||
EnableRewatching = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user.
|
||||
/// </summary>
|
||||
/// <value>The user.</value>
|
||||
public required User User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent identifier.
|
||||
/// </summary>
|
||||
/// <value>The parent identifier.</value>
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the series id.
|
||||
/// </summary>
|
||||
/// <value>The series id.</value>
|
||||
public Guid? SeriesId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start index. Use for paging.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum number of items to return.
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the enable image types.
|
||||
/// </summary>
|
||||
/// <value>The enable image types.</value>
|
||||
public ImageType[] EnableImageTypes { get; set; }
|
||||
|
||||
public bool EnableTotalRecordCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
|
||||
/// </summary>
|
||||
public DateTime NextUpDateCutoff { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to include resumable episodes as next up.
|
||||
/// </summary>
|
||||
public bool EnableResumable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether getting rewatching next up list.
|
||||
/// </summary>
|
||||
public bool EnableRewatching { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using MediaBrowser.Model.Dto;
|
||||
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
public class QueryFilters
|
||||
{
|
||||
public QueryFilters()
|
||||
{
|
||||
Tags = Array.Empty<string>();
|
||||
Genres = Array.Empty<NameGuidPair>();
|
||||
}
|
||||
|
||||
public NameGuidPair[] Genres { get; set; }
|
||||
|
||||
public string[] Tags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
public class QueryFiltersLegacy
|
||||
{
|
||||
public QueryFiltersLegacy()
|
||||
{
|
||||
Genres = Array.Empty<string>();
|
||||
Tags = Array.Empty<string>();
|
||||
OfficialRatings = Array.Empty<string>();
|
||||
Years = Array.Empty<int>();
|
||||
}
|
||||
|
||||
public string[] Genres { get; set; }
|
||||
|
||||
public string[] Tags { get; set; }
|
||||
|
||||
public string[] OfficialRatings { get; set; }
|
||||
|
||||
public int[] Years { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Querying;
|
||||
|
||||
/// <summary>
|
||||
/// Query result container.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of item contained in the query result.</typeparam>
|
||||
public class QueryResult<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="QueryResult{T}" /> class.
|
||||
/// </summary>
|
||||
public QueryResult()
|
||||
{
|
||||
Items = Array.Empty<T>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="QueryResult{T}" /> class.
|
||||
/// </summary>
|
||||
/// <param name="items">The list of items.</param>
|
||||
public QueryResult(IReadOnlyList<T> items)
|
||||
{
|
||||
Items = items;
|
||||
TotalRecordCount = items.Count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="QueryResult{T}" /> class.
|
||||
/// </summary>
|
||||
/// <param name="startIndex">The start index that was used to build the item list.</param>
|
||||
/// <param name="totalRecordCount">The total count of items.</param>
|
||||
/// <param name="items">The list of items.</param>
|
||||
public QueryResult(int? startIndex, int? totalRecordCount, IReadOnlyList<T> items)
|
||||
{
|
||||
StartIndex = startIndex ?? 0;
|
||||
TotalRecordCount = totalRecordCount ?? items.Count;
|
||||
Items = items;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the items.
|
||||
/// </summary>
|
||||
/// <value>The items.</value>
|
||||
public IReadOnlyList<T> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the total number of records available.
|
||||
/// </summary>
|
||||
/// <value>The total record count.</value>
|
||||
public int TotalRecordCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the first record in Items.
|
||||
/// </summary>
|
||||
/// <value>First record index.</value>
|
||||
public int StartIndex { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using MediaBrowser.Model.Dto;
|
||||
|
||||
namespace MediaBrowser.Model.Querying
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ThemeMediaResult.
|
||||
/// </summary>
|
||||
public class ThemeMediaResult : QueryResult<BaseItemDto>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the owner id.
|
||||
/// </summary>
|
||||
/// <value>The owner id.</value>
|
||||
public Guid OwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user