mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 18:44:45 +01:00
Created an ItemsByName query dto
This commit is contained in:
@@ -631,6 +631,12 @@ namespace MediaBrowser.Model.Dto
|
||||
get { return string.Equals(MediaType, Entities.MediaType.Game, StringComparison.OrdinalIgnoreCase); }
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
public bool IsPerson
|
||||
{
|
||||
get { return string.Equals(Type, "Person", StringComparison.OrdinalIgnoreCase); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [property changed].
|
||||
/// </summary>
|
||||
|
||||
52
MediaBrowser.Model/Dto/ItemsByNameQuery.cs
Normal file
52
MediaBrowser.Model/Dto/ItemsByNameQuery.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ItemsByNameQuery
|
||||
/// </summary>
|
||||
public class ItemsByNameQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
/// <value>The user id.</value>
|
||||
public Guid UserId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the start index.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the size of the page.
|
||||
/// </summary>
|
||||
/// <value>The size of the page.</value>
|
||||
public int? PageSize { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="GetItemsByName" /> is recursive.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if recursive; otherwise, <c>false</c>.</value>
|
||||
public bool Recursive { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the sort order.
|
||||
/// </summary>
|
||||
/// <value>The sort order.</value>
|
||||
public SortOrder? SortOrder { get; set; }
|
||||
/// <summary>
|
||||
/// If specified the search will be localized within a specific item or folder
|
||||
/// </summary>
|
||||
/// <value>The item id.</value>
|
||||
public string ItemId { get; set; }
|
||||
/// <summary>
|
||||
/// 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 person types.
|
||||
/// </summary>
|
||||
/// <value>The person types.</value>
|
||||
public string[] PersonTypes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -44,6 +44,7 @@
|
||||
<Compile Include="Configuration\ServerConfiguration.cs" />
|
||||
<Compile Include="Dto\BaseItemPerson.cs" />
|
||||
<Compile Include="Dto\ChapterInfoDto.cs" />
|
||||
<Compile Include="Dto\ItemsByNameQuery.cs" />
|
||||
<Compile Include="Dto\MediaType.cs" />
|
||||
<Compile Include="Entities\BaseItemInfo.cs" />
|
||||
<Compile Include="Connectivity\ClientConnectionInfo.cs" />
|
||||
|
||||
Reference in New Issue
Block a user