| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | #pragma warning disable CS1591 |
| | | 4 | | |
| | | 5 | | using System; |
| | | 6 | | using System.Collections.Generic; |
| | | 7 | | using Jellyfin.Database.Implementations.Entities; |
| | | 8 | | |
| | | 9 | | namespace MediaBrowser.Controller.Entities |
| | | 10 | | { |
| | | 11 | | public class InternalPeopleQuery |
| | | 12 | | { |
| | | 13 | | public InternalPeopleQuery() |
| | 0 | 14 | | : this(Array.Empty<string>(), Array.Empty<string>()) |
| | | 15 | | { |
| | 0 | 16 | | } |
| | | 17 | | |
| | | 18 | | public InternalPeopleQuery(IReadOnlyList<string> personTypes, IReadOnlyList<string> excludePersonTypes) |
| | | 19 | | { |
| | | 20 | | PersonTypes = personTypes; |
| | | 21 | | ExcludePersonTypes = excludePersonTypes; |
| | 0 | 22 | | EnableTotalRecordCount = true; |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Gets or sets a value indicating whether to count the matching people. Under an |
| | | 27 | | /// <see cref="AccessFilter"/> the count is the expensive half of the query: the page walk stops |
| | | 28 | | /// at the limit, the count has to check every person. |
| | | 29 | | /// </summary> |
| | | 30 | | public bool EnableTotalRecordCount { get; set; } |
| | | 31 | | |
| | | 32 | | public int? StartIndex { get; set; } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// Gets or sets the maximum number of items the query should return. |
| | | 36 | | /// </summary> |
| | | 37 | | public int Limit { get; set; } |
| | | 38 | | |
| | | 39 | | public Guid ItemId { get; set; } |
| | | 40 | | |
| | | 41 | | public Guid? ParentId { get; set; } |
| | | 42 | | |
| | | 43 | | public IReadOnlyList<string> PersonTypes { get; } |
| | | 44 | | |
| | | 45 | | public IReadOnlyList<string> ExcludePersonTypes { get; } |
| | | 46 | | |
| | | 47 | | public int? MaxListOrder { get; set; } |
| | | 48 | | |
| | | 49 | | public Guid AppearsInItemId { get; set; } |
| | | 50 | | |
| | | 51 | | public string NameContains { get; set; } |
| | | 52 | | |
| | | 53 | | public string NameStartsWith { get; set; } |
| | | 54 | | |
| | | 55 | | public string NameLessThan { get; set; } |
| | | 56 | | |
| | | 57 | | public string NameStartsWithOrGreater { get; set; } |
| | | 58 | | |
| | | 59 | | public User User { get; set; } |
| | | 60 | | |
| | | 61 | | public bool? IsFavorite { get; set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets the item query whose access settings (library access, parental rating, tags) |
| | | 65 | | /// people must satisfy through at least one of the items they are credited on. |
| | | 66 | | /// </summary> |
| | | 67 | | public InternalItemsQuery AccessFilter { get; set; } |
| | | 68 | | } |
| | | 69 | | } |