| | | 1 | | #nullable disable |
| | | 2 | | #pragma warning disable CS1591 |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using Jellyfin.Data.Enums; |
| | | 6 | | using Jellyfin.Database.Implementations.Entities; |
| | | 7 | | using MediaBrowser.Model.Entities; |
| | | 8 | | |
| | | 9 | | namespace MediaBrowser.Model.Querying |
| | | 10 | | { |
| | | 11 | | public class LatestItemsQuery |
| | | 12 | | { |
| | | 13 | | public LatestItemsQuery() |
| | | 14 | | { |
| | 0 | 15 | | EnableImageTypes = Array.Empty<ImageType>(); |
| | 0 | 16 | | } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the user to localize search results for. |
| | | 20 | | /// </summary> |
| | | 21 | | /// <value>The user id.</value> |
| | | 22 | | public User User { get; set; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets or sets the parent id. |
| | | 26 | | /// Specify this to localize the search to a specific item or folder. Omit to use the root. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <value>The parent id.</value> |
| | | 29 | | public Guid ParentId { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Gets or sets the start index. Used for paging. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <value>The start index.</value> |
| | | 35 | | public int? StartIndex { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// Gets or sets the maximum number of items to return. |
| | | 39 | | /// </summary> |
| | | 40 | | /// <value>The limit.</value> |
| | | 41 | | public int? Limit { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets or sets the fields to return within the items, in addition to basic information. |
| | | 45 | | /// </summary> |
| | | 46 | | /// <value>The fields.</value> |
| | | 47 | | public ItemFields[] Fields { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Gets or sets the include item types. |
| | | 51 | | /// </summary> |
| | | 52 | | /// <value>The include item types.</value> |
| | | 53 | | public BaseItemKind[] IncludeItemTypes { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// Gets or sets a value indicating whether this instance is played. |
| | | 57 | | /// </summary> |
| | | 58 | | /// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</v |
| | | 59 | | public bool? IsPlayed { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// Gets or sets a value indicating whether [group items]. |
| | | 63 | | /// </summary> |
| | | 64 | | /// <value><c>true</c> if [group items]; otherwise, <c>false</c>.</value> |
| | | 65 | | public bool GroupItems { get; set; } |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets a value indicating whether [enable images]. |
| | | 69 | | /// </summary> |
| | | 70 | | /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false |
| | | 71 | | public bool? EnableImages { get; set; } |
| | | 72 | | |
| | | 73 | | /// <summary> |
| | | 74 | | /// Gets or sets the image type limit. |
| | | 75 | | /// </summary> |
| | | 76 | | /// <value>The image type limit.</value> |
| | | 77 | | public int? ImageTypeLimit { get; set; } |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Gets or sets the enable image types. |
| | | 81 | | /// </summary> |
| | | 82 | | /// <value>The enable image types.</value> |
| | | 83 | | public ImageType[] EnableImageTypes { get; set; } |
| | | 84 | | } |
| | | 85 | | } |