2014-06-15 23:30:04 +00:00
|
|
|
|
using MediaBrowser.Model.Querying;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Channels
|
2014-03-18 01:45:41 +00:00
|
|
|
|
{
|
|
|
|
|
public class ChannelQuery
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The user identifier.</value>
|
|
|
|
|
public string 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; }
|
2014-06-17 16:03:14 +00:00
|
|
|
|
|
|
|
|
|
/// <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; }
|
2014-06-23 16:05:19 +00:00
|
|
|
|
|
|
|
|
|
/// <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; }
|
2014-03-18 01:45:41 +00:00
|
|
|
|
}
|
2014-06-02 19:32:41 +00:00
|
|
|
|
|
|
|
|
|
public class AllChannelMediaQuery
|
|
|
|
|
{
|
2014-06-17 16:03:14 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the channel ids.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The channel ids.</value>
|
2014-06-02 19:32:41 +00:00
|
|
|
|
public string[] ChannelIds { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The user identifier.</value>
|
|
|
|
|
public string 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; }
|
|
|
|
|
|
2014-06-07 19:46:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the content types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The content types.</value>
|
|
|
|
|
public ChannelMediaContentType[] ContentTypes { get; set; }
|
|
|
|
|
|
2014-06-02 19:32:41 +00:00
|
|
|
|
public AllChannelMediaQuery()
|
|
|
|
|
{
|
|
|
|
|
ChannelIds = new string[] { };
|
2014-06-07 19:46:24 +00:00
|
|
|
|
|
|
|
|
|
ContentTypes = new ChannelMediaContentType[] { };
|
2014-06-15 23:30:04 +00:00
|
|
|
|
|
|
|
|
|
Filters = new ItemFilter[] { };
|
|
|
|
|
Fields = new List<ItemFields>();
|
2014-06-02 19:32:41 +00:00
|
|
|
|
}
|
2014-06-15 23:30:04 +00:00
|
|
|
|
|
|
|
|
|
public ItemFilter[] Filters { get; set; }
|
|
|
|
|
public List<ItemFields> Fields { get; set; }
|
2014-06-02 19:32:41 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-03-18 01:45:41 +00:00
|
|
|
|
}
|