diff options
Diffstat (limited to 'MediaBrowser.Model/Channels')
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelFeatures.cs | 85 | ||||
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelFolderType.cs | 17 | ||||
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelInfo.cs | 30 | ||||
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelItemSortField.cs | 13 | ||||
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelMediaContentType.cs | 23 | ||||
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelMediaType.cs | 11 | ||||
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelQuery.cs | 52 |
7 files changed, 231 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Channels/ChannelFeatures.cs b/MediaBrowser.Model/Channels/ChannelFeatures.cs new file mode 100644 index 000000000..39b40cabc --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelFeatures.cs @@ -0,0 +1,85 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Model.Channels +{ + public class ChannelFeatures + { + /// <summary> + /// Gets or sets the name. + /// </summary> + /// <value>The name.</value> + public string Name { get; set; } + + /// <summary> + /// Gets or sets the identifier. + /// </summary> + /// <value>The identifier.</value> + public string Id { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether this instance can search. + /// </summary> + /// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value> + public bool CanSearch { get; set; } + + /// <summary> + /// Gets or sets the media types. + /// </summary> + /// <value>The media types.</value> + public ChannelMediaType[] MediaTypes { get; set; } + + /// <summary> + /// Gets or sets the content types. + /// </summary> + /// <value>The content types.</value> + public ChannelMediaContentType[] ContentTypes { get; set; } + + /// <summary> + /// Represents the maximum number of records the channel allows retrieving at a time + /// </summary> + public int? MaxPageSize { get; set; } + + /// <summary> + /// Gets or sets the automatic refresh levels. + /// </summary> + /// <value>The automatic refresh levels.</value> + public int? AutoRefreshLevels { get; set; } + + /// <summary> + /// Gets or sets the default sort orders. + /// </summary> + /// <value>The default sort orders.</value> + public ChannelItemSortField[] DefaultSortFields { get; set; } + + /// <summary> + /// Indicates if a sort ascending/descending toggle is supported or not. + /// </summary> + public bool SupportsSortOrderToggle { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether [supports latest media]. + /// </summary> + /// <value><c>true</c> if [supports latest media]; otherwise, <c>false</c>.</value> + public bool SupportsLatestMedia { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether this instance can filter. + /// </summary> + /// <value><c>true</c> if this instance can filter; otherwise, <c>false</c>.</value> + public bool CanFilter { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether [supports content downloading]. + /// </summary> + /// <value><c>true</c> if [supports content downloading]; otherwise, <c>false</c>.</value> + public bool SupportsContentDownloading { get; set; } + + public ChannelFeatures() + { + MediaTypes = new ChannelMediaType[] { }; + ContentTypes = new ChannelMediaContentType[] { }; + + DefaultSortFields = new ChannelItemSortField[] { }; + } + } +} diff --git a/MediaBrowser.Model/Channels/ChannelFolderType.cs b/MediaBrowser.Model/Channels/ChannelFolderType.cs new file mode 100644 index 000000000..7c97afd02 --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelFolderType.cs @@ -0,0 +1,17 @@ +namespace MediaBrowser.Model.Channels +{ + public enum ChannelFolderType + { + Container = 0, + + MusicAlbum = 1, + + PhotoAlbum = 2, + + MusicArtist = 3, + + Series = 4, + + Season = 5 + } +}
\ No newline at end of file diff --git a/MediaBrowser.Model/Channels/ChannelInfo.cs b/MediaBrowser.Model/Channels/ChannelInfo.cs new file mode 100644 index 000000000..36e3c17d9 --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelInfo.cs @@ -0,0 +1,30 @@ + +namespace MediaBrowser.Model.Channels +{ + public class ChannelInfo + { + /// <summary> + /// Gets or sets the name. + /// </summary> + /// <value>The name.</value> + public string Name { get; set; } + + /// <summary> + /// Gets or sets the identifier. + /// </summary> + /// <value>The identifier.</value> + public string Id { get; set; } + + /// <summary> + /// Gets or sets the home page URL. + /// </summary> + /// <value>The home page URL.</value> + public string HomePageUrl { get; set; } + + /// <summary> + /// Gets or sets the features. + /// </summary> + /// <value>The features.</value> + public ChannelFeatures Features { get; set; } + } +} diff --git a/MediaBrowser.Model/Channels/ChannelItemSortField.cs b/MediaBrowser.Model/Channels/ChannelItemSortField.cs new file mode 100644 index 000000000..6b5015b77 --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelItemSortField.cs @@ -0,0 +1,13 @@ +namespace MediaBrowser.Model.Channels +{ + public enum ChannelItemSortField + { + Name = 0, + CommunityRating = 1, + PremiereDate = 2, + DateCreated = 3, + Runtime = 4, + PlayCount = 5, + CommunityPlayCount = 6 + } +}
\ No newline at end of file diff --git a/MediaBrowser.Model/Channels/ChannelMediaContentType.cs b/MediaBrowser.Model/Channels/ChannelMediaContentType.cs new file mode 100644 index 000000000..efb5021c0 --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelMediaContentType.cs @@ -0,0 +1,23 @@ +namespace MediaBrowser.Model.Channels +{ + public enum ChannelMediaContentType + { + Clip = 0, + + Podcast = 1, + + Trailer = 2, + + Movie = 3, + + Episode = 4, + + Song = 5, + + MovieExtra = 6, + + TvExtra = 7, + + GameExtra = 8 + } +}
\ No newline at end of file diff --git a/MediaBrowser.Model/Channels/ChannelMediaType.cs b/MediaBrowser.Model/Channels/ChannelMediaType.cs new file mode 100644 index 000000000..102cb6644 --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelMediaType.cs @@ -0,0 +1,11 @@ +namespace MediaBrowser.Model.Channels +{ + public enum ChannelMediaType + { + Audio = 0, + + Video = 1, + + Photo = 2 + } +}
\ No newline at end of file diff --git a/MediaBrowser.Model/Channels/ChannelQuery.cs b/MediaBrowser.Model/Channels/ChannelQuery.cs new file mode 100644 index 000000000..6b5e95d69 --- /dev/null +++ b/MediaBrowser.Model/Channels/ChannelQuery.cs @@ -0,0 +1,52 @@ +using MediaBrowser.Model.Entities; +using MediaBrowser.Model.Querying; +using System; + +namespace MediaBrowser.Model.Channels +{ + public class ChannelQuery + { + /// <summary> + /// Fields to return within the items, in addition to basic information + /// </summary> + /// <value>The fields.</value> + public ItemFields[] Fields { get; set; } + public bool? EnableImages { get; set; } + public int? ImageTypeLimit { get; set; } + public ImageType[] EnableImageTypes { get; set; } + + /// <summary> + /// Gets or sets the user identifier. + /// </summary> + /// <value>The user identifier.</value> + public Guid UserId { get; set; } + + /// <summary> + /// Skips over a given number of items within the results. Use for paging. + /// </summary> + /// <value>The start index.</value> + public int? StartIndex { get; set; } + + /// <summary> + /// The maximum number of items to return + /// </summary> + /// <value>The limit.</value> + public int? Limit { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether [supports latest items]. + /// </summary> + /// <value><c>true</c> if [supports latest items]; otherwise, <c>false</c>.</value> + public bool? SupportsLatestItems { get; set; } + + public bool? SupportsMediaDeletion { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether this instance is favorite. + /// </summary> + /// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c>.</value> + public bool? IsFavorite { get; set; } + public bool? IsRecordingsFolder { get; set; } + public bool RefreshLatestChannelItems { get; set; } + } +} |
