| | 1 | | #pragma warning disable CS1591 |
| | 2 | |
|
| | 3 | | using System; |
| | 4 | |
|
| | 5 | | namespace MediaBrowser.Model.Channels |
| | 6 | | { |
| | 7 | | public class ChannelFeatures |
| | 8 | | { |
| | 9 | | public ChannelFeatures(string name, Guid id) |
| | 10 | | { |
| 0 | 11 | | MediaTypes = Array.Empty<ChannelMediaType>(); |
| 0 | 12 | | ContentTypes = Array.Empty<ChannelMediaContentType>(); |
| 0 | 13 | | DefaultSortFields = Array.Empty<ChannelItemSortField>(); |
| | 14 | |
|
| 0 | 15 | | Name = name; |
| 0 | 16 | | Id = id; |
| 0 | 17 | | } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Gets or sets the name. |
| | 21 | | /// </summary> |
| | 22 | | /// <value>The name.</value> |
| | 23 | | public string Name { get; set; } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Gets or sets the identifier. |
| | 27 | | /// </summary> |
| | 28 | | /// <value>The identifier.</value> |
| | 29 | | public Guid Id { get; set; } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Gets or sets a value indicating whether this instance can search. |
| | 33 | | /// </summary> |
| | 34 | | /// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value> |
| | 35 | | public bool CanSearch { get; set; } |
| | 36 | |
|
| | 37 | | /// <summary> |
| | 38 | | /// Gets or sets the media types. |
| | 39 | | /// </summary> |
| | 40 | | /// <value>The media types.</value> |
| | 41 | | public ChannelMediaType[] MediaTypes { get; set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets or sets the content types. |
| | 45 | | /// </summary> |
| | 46 | | /// <value>The content types.</value> |
| | 47 | | public ChannelMediaContentType[] ContentTypes { get; set; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets or sets the maximum number of records the channel allows retrieving at a time. |
| | 51 | | /// </summary> |
| | 52 | | public int? MaxPageSize { get; set; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets the automatic refresh levels. |
| | 56 | | /// </summary> |
| | 57 | | /// <value>The automatic refresh levels.</value> |
| | 58 | | public int? AutoRefreshLevels { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets the default sort orders. |
| | 62 | | /// </summary> |
| | 63 | | /// <value>The default sort orders.</value> |
| | 64 | | public ChannelItemSortField[] DefaultSortFields { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets a value indicating whether a sort ascending/descending toggle is supported. |
| | 68 | | /// </summary> |
| | 69 | | public bool SupportsSortOrderToggle { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets a value indicating whether [supports latest media]. |
| | 73 | | /// </summary> |
| | 74 | | /// <value><c>true</c> if [supports latest media]; otherwise, <c>false</c>.</value> |
| | 75 | | public bool SupportsLatestMedia { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets a value indicating whether this instance can filter. |
| | 79 | | /// </summary> |
| | 80 | | /// <value><c>true</c> if this instance can filter; otherwise, <c>false</c>.</value> |
| | 81 | | public bool CanFilter { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets a value indicating whether [supports content downloading]. |
| | 85 | | /// </summary> |
| | 86 | | /// <value><c>true</c> if [supports content downloading]; otherwise, <c>false</c>.</value> |
| | 87 | | public bool SupportsContentDownloading { get; set; } |
| | 88 | | } |
| | 89 | | } |