| | | 1 | | #nullable disable |
| | | 2 | | #pragma warning disable CS1591 |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using Jellyfin.Data.Enums; |
| | | 6 | | using Jellyfin.Database.Implementations.Enums; |
| | | 7 | | |
| | | 8 | | namespace MediaBrowser.Model.LiveTv |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Class ChannelQuery. |
| | | 12 | | /// </summary> |
| | | 13 | | public class LiveTvChannelQuery |
| | | 14 | | { |
| | | 15 | | public LiveTvChannelQuery() |
| | | 16 | | { |
| | 0 | 17 | | EnableUserData = true; |
| | 0 | 18 | | SortBy = Array.Empty<ItemSortBy>(); |
| | 0 | 19 | | } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets or sets the type of the channel. |
| | | 23 | | /// </summary> |
| | | 24 | | /// <value>The type of the channel.</value> |
| | | 25 | | public ChannelType? ChannelType { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets a value indicating whether this instance is favorite. |
| | | 29 | | /// </summary> |
| | | 30 | | /// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c> |
| | | 31 | | public bool? IsFavorite { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets a value indicating whether this instance is liked. |
| | | 35 | | /// </summary> |
| | | 36 | | /// <value><c>null</c> if [is liked] contains no value, <c>true</c> if [is liked]; otherwise, <c>false</c>.</val |
| | | 37 | | public bool? IsLiked { get; set; } |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Gets or sets a value indicating whether this instance is disliked. |
| | | 41 | | /// </summary> |
| | | 42 | | /// <value><c>null</c> if [is disliked] contains no value, <c>true</c> if [is disliked]; otherwise, <c>false</c> |
| | | 43 | | public bool? IsDisliked { get; set; } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// Gets or sets a value indicating whether [enable favorite sorting]. |
| | | 47 | | /// </summary> |
| | | 48 | | /// <value><c>true</c> if [enable favorite sorting]; otherwise, <c>false</c>.</value> |
| | | 49 | | public bool EnableFavoriteSorting { get; set; } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets the user identifier. |
| | | 53 | | /// </summary> |
| | | 54 | | /// <value>The user identifier.</value> |
| | | 55 | | public Guid UserId { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets the start index. Used for paging. |
| | | 59 | | /// </summary> |
| | | 60 | | /// <value>The start index.</value> |
| | | 61 | | public int? StartIndex { get; set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets the maximum number of items to return. |
| | | 65 | | /// </summary> |
| | | 66 | | /// <value>The limit.</value> |
| | | 67 | | public int? Limit { get; set; } |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Gets or sets a value indicating whether [add current program]. |
| | | 71 | | /// </summary> |
| | | 72 | | /// <value><c>true</c> if [add current program]; otherwise, <c>false</c>.</value> |
| | | 73 | | public bool AddCurrentProgram { get; set; } |
| | | 74 | | |
| | | 75 | | public bool EnableUserData { get; set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets or sets a value whether to return news or not. |
| | | 79 | | /// </summary> |
| | | 80 | | /// <remarks>If set to <c>null</c>, all programs will be returned.</remarks> |
| | | 81 | | public bool? IsNews { get; set; } |
| | | 82 | | |
| | | 83 | | /// <summary> |
| | | 84 | | /// Gets or sets a value whether to return movies or not. |
| | | 85 | | /// </summary> |
| | | 86 | | /// <remarks>If set to <c>null</c>, all programs will be returned.</remarks> |
| | | 87 | | public bool? IsMovie { get; set; } |
| | | 88 | | |
| | | 89 | | /// <summary> |
| | | 90 | | /// Gets or sets a value indicating whether this instance is kids. |
| | | 91 | | /// </summary> |
| | | 92 | | /// <value><c>null</c> if [is kids] contains no value, <c>true</c> if [is kids]; otherwise, <c>false</c>.</value |
| | | 93 | | public bool? IsKids { get; set; } |
| | | 94 | | |
| | | 95 | | /// <summary> |
| | | 96 | | /// Gets or sets a value indicating whether this instance is sports. |
| | | 97 | | /// </summary> |
| | | 98 | | /// <value><c>null</c> if [is sports] contains no value, <c>true</c> if [is sports]; otherwise, <c>false</c>.</v |
| | | 99 | | public bool? IsSports { get; set; } |
| | | 100 | | |
| | | 101 | | public bool? IsSeries { get; set; } |
| | | 102 | | |
| | | 103 | | public ItemSortBy[] SortBy { get; set; } |
| | | 104 | | |
| | | 105 | | /// <summary> |
| | | 106 | | /// Gets or sets the sort order to return results with. |
| | | 107 | | /// </summary> |
| | | 108 | | /// <value>The sort order.</value> |
| | | 109 | | public SortOrder? SortOrder { get; set; } |
| | | 110 | | } |
| | | 111 | | } |