2013-06-03 00:21:35 +00:00
using MediaBrowser.Model.Configuration ;
using MediaBrowser.Model.Dto ;
using MediaBrowser.Model.Entities ;
using MediaBrowser.Model.Globalization ;
2014-01-15 05:38:08 +00:00
using MediaBrowser.Model.LiveTv ;
2013-07-07 04:48:26 +00:00
using MediaBrowser.Model.Notifications ;
2013-06-03 00:21:35 +00:00
using MediaBrowser.Model.Plugins ;
using MediaBrowser.Model.Querying ;
2013-08-07 19:15:55 +00:00
using MediaBrowser.Model.Search ;
2013-06-03 00:21:35 +00:00
using MediaBrowser.Model.Serialization ;
using MediaBrowser.Model.Session ;
using MediaBrowser.Model.System ;
using MediaBrowser.Model.Tasks ;
2013-07-27 15:48:35 +00:00
using MediaBrowser.Model.Users ;
2013-06-03 00:21:35 +00:00
using System ;
using System.Collections.Generic ;
using System.IO ;
2013-08-12 19:13:36 +00:00
using System.Threading ;
2013-06-03 00:21:35 +00:00
using System.Threading.Tasks ;
2013-06-03 00:27:31 +00:00
namespace MediaBrowser.Model.ApiClient
2013-06-03 00:21:35 +00:00
{
2013-09-11 17:54:59 +00:00
/// <summary>
/// Interface IApiClient
/// </summary>
2013-06-03 00:21:35 +00:00
public interface IApiClient : IDisposable
{
2013-09-11 17:54:59 +00:00
/// <summary>
/// Occurs when [server location changed].
/// </summary>
2013-08-31 19:48:11 +00:00
event EventHandler ServerLocationChanged ;
2013-07-09 02:38:18 +00:00
/// <summary>
/// Occurs when [HTTP response received].
/// </summary>
event EventHandler < HttpResponseEventArgs > HttpResponseReceived ;
2013-09-21 21:00:04 +00:00
/// <summary>
/// Gets the API URL.
/// </summary>
/// <param name="handler">The handler.</param>
/// <returns>System.String.</returns>
2013-09-11 17:54:59 +00:00
string GetApiUrl ( string handler ) ;
2013-09-21 21:00:04 +00:00
/// <summary>
/// Gets the game system summaries async.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{List{GameSystemSummary}}.</returns>
Task < List < GameSystemSummary > > GetGameSystemSummariesAsync ( CancellationToken cancellationToken ) ;
2013-09-11 17:54:59 +00:00
/// <summary>
/// Gets the async.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="url">The URL.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{``0}.</returns>
Task < T > GetAsync < T > ( string url , CancellationToken cancellationToken )
where T : class ;
2013-09-10 18:56:00 +00:00
2014-01-05 06:25:46 +00:00
/// <summary>
/// Reports the capabilities.
/// </summary>
/// <param name="capabilities">The capabilities.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
2014-04-13 17:27:13 +00:00
Task ReportCapabilities ( ClientCapabilities capabilities , CancellationToken cancellationToken ) ;
2014-01-05 06:25:46 +00:00
2013-10-06 03:03:08 +00:00
/// <summary>
/// Gets the index of the game players.
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{List{ItemIndex}}.</returns>
Task < List < ItemIndex > > GetGamePlayerIndex ( string userId , CancellationToken cancellationToken ) ;
/// <summary>
/// Gets the index of the year.
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="includeItemTypes">The include item types.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{List{ItemIndex}}.</returns>
Task < List < ItemIndex > > GetYearIndex ( string userId , string [ ] includeItemTypes , CancellationToken cancellationToken ) ;
2013-10-09 01:54:56 +00:00
2013-07-21 14:20:57 +00:00
/// <summary>
/// Gets the critic reviews.
/// </summary>
/// <param name="itemId">The item id.</param>
2013-09-11 17:54:59 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-07-21 14:20:57 +00:00
/// <param name="startIndex">The start index.</param>
/// <param name="limit">The limit.</param>
/// <returns>Task{ItemReviewsResult}.</returns>
2013-11-25 20:39:23 +00:00
Task < QueryResult < ItemReview > > GetCriticReviews ( string itemId , CancellationToken cancellationToken , int? startIndex = null , int? limit = null ) ;
2013-07-21 14:20:57 +00:00
2013-07-10 20:06:11 +00:00
/// <summary>
/// Gets the theme songs async.
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="itemId">The item id.</param>
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
2013-09-11 17:54:59 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-07-10 20:06:11 +00:00
/// <returns>Task{ThemeMediaResult}.</returns>
2013-08-21 22:12:42 +00:00
Task < ThemeMediaResult > GetThemeSongsAsync ( string userId , string itemId , bool inheritFromParents , CancellationToken cancellationToken ) ;
2013-07-10 20:06:11 +00:00
2013-08-07 19:15:55 +00:00
/// <summary>
/// Gets the search hints async.
/// </summary>
2014-01-07 20:12:39 +00:00
/// <param name="query">The query.</param>
2013-08-07 19:15:55 +00:00
/// <returns>Task{SearchHintResult}.</returns>
2014-01-07 20:12:39 +00:00
Task < SearchHintResult > GetSearchHintsAsync ( SearchQuery query ) ;
2013-08-07 19:15:55 +00:00
2013-07-10 20:06:11 +00:00
/// <summary>
/// Gets the theme videos async.
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="itemId">The item id.</param>
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
2013-09-11 17:54:59 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-07-10 20:06:11 +00:00
/// <returns>Task{ThemeMediaResult}.</returns>
2013-08-21 22:12:42 +00:00
Task < ThemeMediaResult > GetThemeVideosAsync ( string userId , string itemId , bool inheritFromParents , CancellationToken cancellationToken ) ;
2013-07-10 20:06:11 +00:00
/// <summary>
/// Gets all theme media async.
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="itemId">The item id.</param>
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
2013-09-11 17:54:59 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-07-10 20:06:11 +00:00
/// <returns>Task{AllThemeMediaResult}.</returns>
2013-08-21 22:12:42 +00:00
Task < AllThemeMediaResult > GetAllThemeMediaAsync ( string userId , string itemId , bool inheritFromParents , CancellationToken cancellationToken ) ;
2013-07-21 14:20:57 +00:00
2013-07-07 04:48:26 +00:00
/// <summary>
/// Marks the notifications read.
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="notificationIdList">The notification id list.</param>
/// <param name="isRead">if set to <c>true</c> [is read].</param>
/// <returns>Task.</returns>
Task MarkNotificationsRead ( string userId , IEnumerable < Guid > notificationIdList , bool isRead ) ;
/// <summary>
/// Updates the notification.
/// </summary>
/// <param name="notification">The notification.</param>
/// <returns>Task.</returns>
Task UpdateNotification ( Notification notification ) ;
/// <summary>
/// Adds the notification.
/// </summary>
/// <param name="notification">The notification.</param>
/// <returns>Task{Notification}.</returns>
Task < Notification > AddNotification ( Notification notification ) ;
/// <summary>
/// Gets the notifications summary.
/// </summary>
/// <param name="userId">The user id.</param>
/// <returns>Task{NotificationsSummary}.</returns>
Task < NotificationsSummary > GetNotificationsSummary ( string userId ) ;
/// <summary>
2013-07-07 04:54:16 +00:00
/// Gets the notifications async.
2013-07-07 04:48:26 +00:00
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{NotificationResult}.</returns>
2013-07-07 04:54:16 +00:00
Task < NotificationResult > GetNotificationsAsync ( NotificationQuery query ) ;
2013-07-07 04:48:26 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets an image stream based on a url
/// </summary>
/// <param name="url">The URL.</param>
2013-08-12 19:13:36 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{Stream}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">url</exception>
2013-08-12 19:13:36 +00:00
Task < Stream > GetImageStreamAsync ( string url , CancellationToken cancellationToken ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets a BaseItem
/// </summary>
/// <param name="id">The id.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">id</exception>
2013-06-03 00:21:35 +00:00
Task < BaseItemDto > GetItemAsync ( string id , string userId ) ;
/// <summary>
/// Gets the intros async.
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="userId">The user id.</param>
2013-10-04 17:04:18 +00:00
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetIntrosAsync ( string itemId , string userId ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets a BaseItem
/// </summary>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-06-03 00:21:35 +00:00
Task < BaseItemDto > GetRootFolderAsync ( string userId ) ;
/// <summary>
2013-06-03 02:17:13 +00:00
/// Gets the users async.
2013-06-03 00:21:35 +00:00
/// </summary>
2013-09-11 17:54:59 +00:00
/// <param name="query">The query.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{UserDto[]}.</returns>
2013-07-09 18:37:41 +00:00
Task < UserDto [ ] > GetUsersAsync ( UserQuery query ) ;
2013-06-03 00:21:35 +00:00
2013-07-09 16:11:16 +00:00
/// <summary>
/// Gets the public users async.
/// </summary>
2013-09-11 17:54:59 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-07-09 16:11:16 +00:00
/// <returns>Task{UserDto[]}.</returns>
2013-08-21 20:08:42 +00:00
Task < UserDto [ ] > GetPublicUsersAsync ( CancellationToken cancellationToken ) ;
2013-07-21 14:20:57 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets active client sessions.
/// </summary>
2013-09-21 21:00:04 +00:00
/// <param name="query">The query.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{SessionInfoDto[]}.</returns>
2013-09-19 20:03:14 +00:00
Task < SessionInfoDto [ ] > GetClientSessionsAsync ( SessionQuery query ) ;
2013-06-03 00:21:35 +00:00
2013-06-22 18:15:31 +00:00
/// <summary>
/// Gets the item counts async.
/// </summary>
2013-10-21 03:01:22 +00:00
/// <param name="query">The query.</param>
2013-06-22 18:15:31 +00:00
/// <returns>Task{ItemCounts}.</returns>
2013-10-21 03:01:22 +00:00
Task < ItemCounts > GetItemCountsAsync ( ItemCountsQuery query ) ;
2013-07-07 04:48:26 +00:00
2013-11-22 15:33:14 +00:00
/// <summary>
/// Gets the episodes asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetEpisodesAsync ( EpisodeQuery query ) ;
2013-11-28 18:27:29 +00:00
/// <summary>
/// Gets the seasons asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetSeasonsAsync ( SeasonQuery query ) ;
2014-03-13 09:18:32 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Queries for items
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">query</exception>
2013-06-03 00:21:35 +00:00
Task < ItemsResult > GetItemsAsync ( ItemQuery query ) ;
2013-08-10 01:16:31 +00:00
/// <summary>
/// Gets the instant mix from song async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetInstantMixFromSongAsync ( SimilarItemsQuery query ) ;
/// <summary>
/// Gets the instant mix from album async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetInstantMixFromAlbumAsync ( SimilarItemsQuery query ) ;
/// <summary>
/// Gets the instant mix from artist async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetInstantMixFromArtistAsync ( SimilarItemsByNameQuery query ) ;
/// <summary>
/// Gets the instant mix from music genre async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetInstantMixFromMusicGenreAsync ( SimilarItemsByNameQuery query ) ;
2013-08-21 20:08:42 +00:00
2013-06-04 02:02:49 +00:00
/// <summary>
/// Gets the similar movies async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetSimilarMoviesAsync ( SimilarItemsQuery query ) ;
2013-07-12 19:56:40 +00:00
/// <summary>
/// Gets the similar trailers async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetSimilarTrailersAsync ( SimilarItemsQuery query ) ;
2013-07-21 14:20:57 +00:00
2013-06-04 02:02:49 +00:00
/// <summary>
/// Gets the similar series async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetSimilarSeriesAsync ( SimilarItemsQuery query ) ;
/// <summary>
/// Gets the similar albums async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetSimilarAlbumsAsync ( SimilarItemsQuery query ) ;
/// <summary>
/// Gets the similar games async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetSimilarGamesAsync ( SimilarItemsQuery query ) ;
2013-07-07 04:48:26 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets the people async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-06-03 00:21:35 +00:00
Task < ItemsResult > GetPeopleAsync ( PersonsQuery query ) ;
/// <summary>
/// Gets the artists.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-06-03 00:21:35 +00:00
Task < ItemsResult > GetArtistsAsync ( ArtistsQuery query ) ;
/// <summary>
/// Gets a studio
/// </summary>
/// <param name="name">The name.</param>
2013-07-27 17:18:10 +00:00
/// <param name="userId">The user id.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{BaseItemDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-07-27 17:18:10 +00:00
Task < BaseItemDto > GetStudioAsync ( string name , string userId ) ;
2013-06-03 00:21:35 +00:00
2013-06-17 01:48:55 +00:00
/// <summary>
/// Gets the next up async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
2014-03-06 05:23:06 +00:00
Task < ItemsResult > GetNextUpEpisodesAsync ( NextUpQuery query ) ;
2013-07-07 04:48:26 +00:00
2014-03-06 05:23:06 +00:00
/// <summary>
/// Gets the upcoming episodes asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetUpcomingEpisodesAsync ( NextUpQuery query ) ;
2014-03-13 09:18:32 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets a genre
/// </summary>
/// <param name="name">The name.</param>
2013-07-27 17:18:10 +00:00
/// <param name="userId">The user id.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{BaseItemDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-07-27 17:18:10 +00:00
Task < BaseItemDto > GetGenreAsync ( string name , string userId ) ;
2013-06-03 00:21:35 +00:00
2013-08-03 16:06:45 +00:00
/// <summary>
/// Gets the genres async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetGenresAsync ( ItemsByNameQuery query ) ;
/// <summary>
/// Gets the music genres async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetMusicGenresAsync ( ItemsByNameQuery query ) ;
/// <summary>
/// Gets the game genres async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetGameGenresAsync ( ItemsByNameQuery query ) ;
/// <summary>
/// Gets the studios async.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>Task{ItemsResult}.</returns>
Task < ItemsResult > GetStudiosAsync ( ItemsByNameQuery query ) ;
2013-08-21 20:08:42 +00:00
2013-07-27 18:24:48 +00:00
/// <summary>
/// Gets the music genre async.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
Task < BaseItemDto > GetMusicGenreAsync ( string name , string userId ) ;
/// <summary>
/// Gets the game genre async.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{BaseItemDto}.</returns>
Task < BaseItemDto > GetGameGenreAsync ( string name , string userId ) ;
2013-08-21 20:08:42 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets the artist async.
/// </summary>
/// <param name="name">The name.</param>
2013-07-27 17:18:10 +00:00
/// <param name="userId">The user id.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{BaseItemDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">name</exception>
2013-07-27 17:18:10 +00:00
Task < BaseItemDto > GetArtistAsync ( string name , string userId ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
2013-07-07 15:55:05 +00:00
/// Restarts the server.
2013-06-03 00:21:35 +00:00
/// </summary>
/// <returns>Task.</returns>
2013-07-07 15:55:05 +00:00
Task RestartServerAsync ( ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets the system status async.
/// </summary>
/// <returns>Task{SystemInfo}.</returns>
Task < SystemInfo > GetSystemInfoAsync ( ) ;
/// <summary>
/// Gets a person
/// </summary>
/// <param name="name">The name.</param>
2013-07-27 17:18:10 +00:00
/// <param name="userId">The user id.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{BaseItemDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-07-27 17:18:10 +00:00
Task < BaseItemDto > GetPersonAsync ( string name , string userId ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets a list of plugins installed on the server
/// </summary>
/// <returns>Task{PluginInfo[]}.</returns>
Task < PluginInfo [ ] > GetInstalledPluginsAsync ( ) ;
/// <summary>
/// Gets the current server configuration
/// </summary>
/// <returns>Task{ServerConfiguration}.</returns>
Task < ServerConfiguration > GetServerConfigurationAsync ( ) ;
/// <summary>
/// Gets the scheduled tasks.
/// </summary>
/// <returns>Task{TaskInfo[]}.</returns>
Task < TaskInfo [ ] > GetScheduledTasksAsync ( ) ;
/// <summary>
/// Gets the scheduled task async.
/// </summary>
/// <param name="id">The id.</param>
/// <returns>Task{TaskInfo}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">id</exception>
2013-06-03 00:21:35 +00:00
Task < TaskInfo > GetScheduledTaskAsync ( Guid id ) ;
/// <summary>
/// Gets a user by id
/// </summary>
/// <param name="id">The id.</param>
/// <returns>Task{UserDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">id</exception>
2013-06-03 00:21:35 +00:00
Task < UserDto > GetUserAsync ( string id ) ;
/// <summary>
/// Gets the parental ratings async.
/// </summary>
/// <returns>Task{List{ParentalRating}}.</returns>
Task < List < ParentalRating > > GetParentalRatingsAsync ( ) ;
/// <summary>
/// Gets local trailers for an item
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="itemId">The item id.</param>
/// <returns>Task{ItemsResult}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">query</exception>
2013-06-03 00:21:35 +00:00
Task < BaseItemDto [ ] > GetLocalTrailersAsync ( string userId , string itemId ) ;
/// <summary>
/// Gets special features for an item
/// </summary>
/// <param name="userId">The user id.</param>
/// <param name="itemId">The item id.</param>
/// <returns>Task{BaseItemDto[]}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-06-03 00:21:35 +00:00
Task < BaseItemDto [ ] > GetSpecialFeaturesAsync ( string userId , string itemId ) ;
/// <summary>
/// Gets the cultures async.
/// </summary>
/// <returns>Task{CultureDto[]}.</returns>
Task < CultureDto [ ] > GetCulturesAsync ( ) ;
/// <summary>
/// Gets the countries async.
/// </summary>
/// <returns>Task{CountryInfo[]}.</returns>
Task < CountryInfo [ ] > GetCountriesAsync ( ) ;
/// <summary>
2013-09-21 19:24:50 +00:00
/// Marks the played async.
2013-06-03 00:21:35 +00:00
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="userId">The user id.</param>
2013-09-21 19:24:50 +00:00
/// <param name="datePlayed">The date played.</param>
/// <returns>Task{UserItemDataDto}.</returns>
Task < UserItemDataDto > MarkPlayedAsync ( string itemId , string userId , DateTime ? datePlayed ) ;
2013-06-03 00:21:35 +00:00
2013-09-21 19:24:50 +00:00
/// <summary>
/// Marks the unplayed async.
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{UserItemDataDto}.</returns>
Task < UserItemDataDto > MarkUnplayedAsync ( string itemId , string userId ) ;
2013-09-21 21:00:04 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Updates the favorite status async.
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="userId">The user id.</param>
/// <param name="isFavorite">if set to <c>true</c> [is favorite].</param>
/// <returns>Task.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2013-08-22 21:56:19 +00:00
Task < UserItemDataDto > UpdateFavoriteStatusAsync ( string itemId , string userId , bool isFavorite ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Reports to the server that the user has begun playing an item
/// </summary>
2014-03-22 03:35:03 +00:00
/// <param name="info">The information.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{UserItemDataDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2014-03-22 03:35:03 +00:00
Task ReportPlaybackStartAsync ( PlaybackStartInfo info ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Reports playback progress to the server
/// </summary>
2014-03-22 03:35:03 +00:00
/// <param name="info">The information.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{UserItemDataDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2014-03-22 03:35:03 +00:00
Task ReportPlaybackProgressAsync ( PlaybackProgressInfo info ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Reports to the server that the user has stopped playing an item
/// </summary>
2014-03-22 03:35:03 +00:00
/// <param name="info">The information.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{UserItemDataDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2014-03-22 03:35:03 +00:00
Task ReportPlaybackStoppedAsync ( PlaybackStopInfo info ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Instructs antoher client to browse to a library item.
/// </summary>
/// <param name="sessionId">The session id.</param>
/// <param name="itemId">The id of the item to browse to.</param>
/// <param name="itemName">The name of the item to browse to.</param>
/// <param name="itemType">The type of the item to browse to.</param>
/// <param name="context">Optional ui context (movies, music, tv, games, etc). The client is free to ignore this.</param>
/// <returns>Task.</returns>
2014-03-13 09:18:32 +00:00
Task SendBrowseCommandAsync ( string sessionId , string itemId , string itemName , string itemType , string context ) ;
2013-06-03 00:21:35 +00:00
2013-07-09 16:11:16 +00:00
/// <summary>
/// Sends the playstate command async.
/// </summary>
2014-03-13 09:18:32 +00:00
/// <param name="sessionId">The session id.</param>
2013-07-09 16:11:16 +00:00
/// <param name="request">The request.</param>
/// <returns>Task.</returns>
2013-07-09 16:16:52 +00:00
Task SendPlaystateCommandAsync ( string sessionId , PlaystateRequest request ) ;
2013-07-09 16:11:16 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Sends the play command async.
/// </summary>
/// <param name="sessionId">The session id.</param>
/// <param name="request">The request.</param>
/// <returns>Task.</returns>
2013-09-11 17:54:59 +00:00
/// <exception cref="ArgumentNullException">sessionId
2013-06-03 00:21:35 +00:00
/// or
2013-09-11 17:54:59 +00:00
/// request</exception>
2013-06-03 00:21:35 +00:00
Task SendPlayCommandAsync ( string sessionId , PlayRequest request ) ;
2014-03-28 20:36:29 +00:00
/// <summary>
/// Sends the command asynchronous.
/// </summary>
/// <param name="sessionId">The session identifier.</param>
2013-09-11 17:54:59 +00:00
/// <param name="command">The command.</param>
/// <returns>Task.</returns>
2014-03-31 21:04:22 +00:00
Task SendCommandAsync ( string sessionId , GeneralCommand command ) ;
2013-08-28 04:42:56 +00:00
/// <summary>
/// Instructs the client to display a message to the user
/// </summary>
2013-09-11 17:54:59 +00:00
/// <param name="sessionId">The session id.</param>
/// <param name="command">The command.</param>
/// <returns>Task.</returns>
2013-08-28 04:42:56 +00:00
Task SendMessageCommandAsync ( string sessionId , MessageCommand command ) ;
2013-09-11 17:54:59 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Clears a user's rating for an item
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="userId">The user id.</param>
/// <returns>Task{UserItemDataDto}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2013-08-22 21:56:19 +00:00
Task < UserItemDataDto > ClearUserItemRatingAsync ( string itemId , string userId ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Updates a user's rating for an item, based on likes or dislikes
/// </summary>
/// <param name="itemId">The item id.</param>
/// <param name="userId">The user id.</param>
/// <param name="likes">if set to <c>true</c> [likes].</param>
/// <returns>Task.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2013-08-22 21:56:19 +00:00
Task < UserItemDataDto > UpdateUserItemRatingAsync ( string itemId , string userId , bool likes ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Authenticates a user and returns the result
/// </summary>
2013-07-27 15:40:53 +00:00
/// <param name="username">The username.</param>
2013-06-03 00:21:35 +00:00
/// <param name="sha1Hash">The sha1 hash.</param>
/// <returns>Task.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-07-27 15:48:35 +00:00
Task < AuthenticationResult > AuthenticateUserAsync ( string username , byte [ ] sha1Hash ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Updates the server configuration async.
/// </summary>
/// <param name="configuration">The configuration.</param>
/// <returns>Task.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">configuration</exception>
2013-06-03 00:21:35 +00:00
Task UpdateServerConfigurationAsync ( ServerConfiguration configuration ) ;
/// <summary>
/// Updates the scheduled task triggers.
/// </summary>
/// <param name="id">The id.</param>
/// <param name="triggers">The triggers.</param>
/// <returns>Task{RequestResult}.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">id</exception>
2013-06-03 00:21:35 +00:00
Task UpdateScheduledTaskTriggersAsync ( Guid id , TaskTriggerInfo [ ] triggers ) ;
/// <summary>
/// Gets the display preferences.
/// </summary>
/// <param name="id">The id.</param>
2013-07-27 01:15:55 +00:00
/// <param name="userId">The user id.</param>
/// <param name="client">The client.</param>
2013-09-11 17:54:59 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{BaseItemDto}.</returns>
2013-08-21 20:08:42 +00:00
Task < DisplayPreferences > GetDisplayPreferencesAsync ( string id , string userId , string client , CancellationToken cancellationToken ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Updates display preferences for a user
/// </summary>
/// <param name="displayPreferences">The display preferences.</param>
2013-09-11 17:54:59 +00:00
/// <param name="userId">The user id.</param>
/// <param name="client">The client.</param>
/// <param name="cancellationToken">The cancellation token.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{DisplayPreferences}.</returns>
/// <exception cref="System.ArgumentNullException">userId</exception>
2013-08-29 21:00:27 +00:00
Task UpdateDisplayPreferencesAsync ( DisplayPreferences displayPreferences , string userId , string client , CancellationToken cancellationToken ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Posts a set of data to a url, and deserializes the return stream into T
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="url">The URL.</param>
/// <param name="args">The args.</param>
2014-01-07 20:12:39 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
2013-06-03 00:21:35 +00:00
/// <returns>Task{``0}.</returns>
2014-01-07 20:12:39 +00:00
Task < T > PostAsync < T > ( string url , Dictionary < string , string > args , CancellationToken cancellationToken )
2013-06-03 00:21:35 +00:00
where T : class ;
/// <summary>
/// This is a helper around getting a stream from the server that contains serialized data
/// </summary>
/// <param name="url">The URL.</param>
/// <returns>Task{Stream}.</returns>
Task < Stream > GetSerializedStreamAsync ( string url ) ;
/// <summary>
/// Gets the json serializer.
/// </summary>
/// <value>The json serializer.</value>
IJsonSerializer JsonSerializer { get ; set ; }
/// <summary>
/// Gets or sets the server host name (myserver or 192.168.x.x)
/// </summary>
/// <value>The name of the server host.</value>
2013-10-09 01:54:56 +00:00
string ServerHostName { get ; }
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets or sets the port number used by the API
/// </summary>
/// <value>The server API port.</value>
2013-10-09 01:54:56 +00:00
int ServerApiPort { get ; }
/// <summary>
/// Changes the server location.
/// </summary>
/// <param name="hostName">Name of the host.</param>
/// <param name="apiPort">The API port.</param>
void ChangeServerLocation ( string hostName , int apiPort ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets or sets the type of the client.
/// </summary>
/// <value>The type of the client.</value>
string ClientName { get ; set ; }
/// <summary>
/// Gets or sets the name of the device.
/// </summary>
/// <value>The name of the device.</value>
string DeviceName { get ; set ; }
/// <summary>
/// Gets or sets the device id.
/// </summary>
/// <value>The device id.</value>
string DeviceId { get ; set ; }
/// <summary>
/// Gets or sets the current user id.
/// </summary>
/// <value>The current user id.</value>
string CurrentUserId { get ; set ; }
/// <summary>
/// Gets the image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">item</exception>
2013-06-03 00:21:35 +00:00
string GetImageUrl ( BaseItemDto item , ImageOptions options ) ;
2014-01-15 05:38:08 +00:00
/// <summary>
/// Gets the image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetImageUrl ( ChannelInfoDto item , ImageOptions options ) ;
/// <summary>
/// Gets the image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetImageUrl ( RecordingInfoDto item , ImageOptions options ) ;
2014-01-17 18:23:00 +00:00
/// <summary>
/// Gets the image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetImageUrl ( ProgramInfoDto item , ImageOptions options ) ;
2014-03-13 09:18:32 +00:00
2014-04-13 17:27:13 +00:00
/// <summary>
/// Gets the subtitle URL.
/// </summary>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetSubtitleUrl ( SubtitleOptions options ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets an image url that can be used to download an image from the api
/// </summary>
/// <param name="itemId">The Id of the item</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">itemId</exception>
2013-06-03 00:21:35 +00:00
string GetImageUrl ( string itemId , ImageOptions options ) ;
/// <summary>
/// Gets the user image URL.
/// </summary>
/// <param name="user">The user.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">user</exception>
2013-06-03 00:21:35 +00:00
string GetUserImageUrl ( UserDto user , ImageOptions options ) ;
/// <summary>
/// Gets an image url that can be used to download an image from the api
/// </summary>
/// <param name="userId">The Id of the user</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">userId</exception>
2013-06-03 00:21:35 +00:00
string GetUserImageUrl ( string userId , ImageOptions options ) ;
/// <summary>
/// Gets the person image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">item</exception>
2013-06-03 00:21:35 +00:00
string GetPersonImageUrl ( BaseItemPerson item , ImageOptions options ) ;
/// <summary>
/// Gets an image url that can be used to download an image from the api
/// </summary>
/// <param name="name">The name of the person</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">name</exception>
2013-06-03 00:21:35 +00:00
string GetPersonImageUrl ( string name , ImageOptions options ) ;
/// <summary>
/// Gets an image url that can be used to download an image from the api
/// </summary>
/// <param name="year">The year.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetYearImageUrl ( int year , ImageOptions options ) ;
/// <summary>
/// Gets an image url that can be used to download an image from the api
/// </summary>
/// <param name="name">The name.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">name</exception>
2013-06-03 00:21:35 +00:00
string GetGenreImageUrl ( string name , ImageOptions options ) ;
/// <summary>
2013-07-29 20:44:49 +00:00
/// Gets the music genre image URL.
2013-06-03 00:21:35 +00:00
/// </summary>
2013-07-29 20:44:49 +00:00
/// <param name="name">The name.</param>
2013-06-03 00:21:35 +00:00
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-07-29 20:44:49 +00:00
string GetMusicGenreImageUrl ( string name , ImageOptions options ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
2013-07-29 20:44:49 +00:00
/// Gets the game genre image URL.
2013-06-03 00:21:35 +00:00
/// </summary>
/// <param name="name">The name.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-07-29 20:44:49 +00:00
string GetGameGenreImageUrl ( string name , ImageOptions options ) ;
2013-08-21 20:08:42 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
2013-07-29 20:44:49 +00:00
/// Gets an image url that can be used to download an image from the api
2013-06-03 00:21:35 +00:00
/// </summary>
2013-07-29 20:44:49 +00:00
/// <param name="name">The name.</param>
2013-06-03 00:21:35 +00:00
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-07-29 20:44:49 +00:00
/// <exception cref="ArgumentNullException">name</exception>
string GetStudioImageUrl ( string name , ImageOptions options ) ;
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets the artist image URL.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">name</exception>
2013-06-03 00:21:35 +00:00
string GetArtistImageUrl ( string name , ImageOptions options ) ;
/// <summary>
/// This is a helper to get a list of backdrop url's from a given ApiBaseItemWrapper. If the actual item does not have any backdrops it will return backdrops from the first parent that does.
/// </summary>
/// <param name="item">A given item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String[][].</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">item</exception>
2013-06-03 00:21:35 +00:00
string [ ] GetBackdropImageUrls ( BaseItemDto item , ImageOptions options ) ;
/// <summary>
/// This is a helper to get the logo image url from a given ApiBaseItemWrapper. If the actual item does not have a logo, it will return the logo from the first parent that does, or null.
/// </summary>
/// <param name="item">A given item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">item</exception>
2013-06-03 00:21:35 +00:00
string GetLogoImageUrl ( BaseItemDto item , ImageOptions options ) ;
2013-07-08 19:31:45 +00:00
/// <summary>
/// Gets the art image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetArtImageUrl ( BaseItemDto item , ImageOptions options ) ;
2013-07-21 14:20:57 +00:00
2013-10-24 17:49:24 +00:00
/// <summary>
/// Gets the thumb image URL.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
string GetThumbImageUrl ( BaseItemDto item , ImageOptions options ) ;
2014-03-13 09:18:32 +00:00
2013-06-03 00:21:35 +00:00
/// <summary>
/// Gets the url needed to stream an audio file
/// </summary>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">options</exception>
2013-06-03 00:21:35 +00:00
string GetAudioStreamUrl ( StreamOptions options ) ;
/// <summary>
/// Gets the url needed to stream a video file
/// </summary>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">options</exception>
2013-06-03 00:21:35 +00:00
string GetVideoStreamUrl ( VideoStreamOptions options ) ;
/// <summary>
/// Formulates a url for streaming audio using the HLS protocol
/// </summary>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">options</exception>
2013-06-03 00:21:35 +00:00
string GetHlsAudioStreamUrl ( StreamOptions options ) ;
/// <summary>
/// Formulates a url for streaming video using the HLS protocol
/// </summary>
/// <param name="options">The options.</param>
/// <returns>System.String.</returns>
2013-06-03 00:27:31 +00:00
/// <exception cref="ArgumentNullException">options</exception>
2013-06-03 00:21:35 +00:00
string GetHlsVideoStreamUrl ( VideoStreamOptions options ) ;
2014-01-15 05:38:08 +00:00
/// <summary>
/// Gets the live tv information asynchronous.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{LiveTvInfo}.</returns>
Task < LiveTvInfo > GetLiveTvInfoAsync ( CancellationToken cancellationToken ) ;
/// <summary>
/// Gets the live tv channels asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{LiveTvInfo}.</returns>
Task < QueryResult < ChannelInfoDto > > GetLiveTvChannelsAsync ( ChannelQuery query , CancellationToken cancellationToken ) ;
2014-01-16 17:23:30 +00:00
/// <summary>
/// Gets the live tv channel asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="userId">The user identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{ChannelInfoDto}.</returns>
Task < ChannelInfoDto > GetLiveTvChannelAsync ( string id , string userId , CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-01-15 05:38:08 +00:00
/// <summary>
/// Gets the live tv recordings asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{QueryResult{RecordingInfoDto}}.</returns>
Task < QueryResult < RecordingInfoDto > > GetLiveTvRecordingsAsync ( RecordingQuery query , CancellationToken cancellationToken ) ;
2014-01-16 17:23:30 +00:00
/// <summary>
/// Gets the live tv recording asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="userId">The user identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{RecordingInfoDto}.</returns>
Task < RecordingInfoDto > GetLiveTvRecordingAsync ( string id , string userId , CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-01-15 05:38:08 +00:00
/// <summary>
/// Gets the live tv recording groups asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{QueryResult{RecordingGroupDto}}.</returns>
Task < QueryResult < RecordingGroupDto > > GetLiveTvRecordingGroupsAsync ( RecordingGroupQuery query , CancellationToken cancellationToken ) ;
2014-01-16 17:23:30 +00:00
/// <summary>
/// Gets the live tv recording group asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="userId">The user identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{RecordingGroupDto}.</returns>
Task < RecordingGroupDto > GetLiveTvRecordingGroupAsync ( string id , string userId , CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-01-16 17:23:30 +00:00
/// <summary>
/// Gets the live tv timers asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{QueryResult{TimerInfoDto}}.</returns>
Task < QueryResult < TimerInfoDto > > GetLiveTvTimersAsync ( TimerQuery query , CancellationToken cancellationToken ) ;
2014-01-17 18:23:00 +00:00
/// <summary>
/// Gets the live tv programs asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{QueryResult{ProgramInfoDto}}.</returns>
Task < QueryResult < ProgramInfoDto > > GetLiveTvProgramsAsync ( ProgramQuery query , CancellationToken cancellationToken ) ;
2014-01-17 20:51:29 +00:00
2014-03-08 18:17:05 +00:00
/// <summary>
/// Gets the live tv program asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="userId">The user identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{ProgramInfoDto}.</returns>
Task < ProgramInfoDto > GetLiveTvProgramAsync ( string id , string userId , CancellationToken cancellationToken ) ;
2014-01-17 20:51:29 +00:00
/// <summary>
/// Gets the recommended live tv programs asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{QueryResult{ProgramInfoDto}}.</returns>
Task < QueryResult < ProgramInfoDto > > GetRecommendedLiveTvProgramsAsync ( RecommendedProgramQuery query , CancellationToken cancellationToken ) ;
2014-03-08 18:17:05 +00:00
/// <summary>
/// Creates the live tv timer asynchronous.
/// </summary>
/// <param name="timer">The timer.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
2014-03-23 22:21:49 +00:00
Task CreateLiveTvTimerAsync ( BaseTimerInfoDto timer , CancellationToken cancellationToken ) ;
2014-03-08 18:17:05 +00:00
/// <summary>
/// Updates the live tv timer asynchronous.
/// </summary>
/// <param name="timer">The timer.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task UpdateLiveTvTimerAsync ( TimerInfoDto timer , CancellationToken cancellationToken ) ;
/// <summary>
/// Creates the live tv series timer asynchronous.
/// </summary>
/// <param name="timer">The timer.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task CreateLiveTvSeriesTimerAsync ( SeriesTimerInfoDto timer , CancellationToken cancellationToken ) ;
/// <summary>
/// Updates the live tv series timer asynchronous.
/// </summary>
/// <param name="timer">The timer.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task UpdateLiveTvSeriesTimerAsync ( SeriesTimerInfoDto timer , CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-01-16 17:23:30 +00:00
/// <summary>
/// Gets the live tv timer asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{TimerInfoDto}.</returns>
Task < TimerInfoDto > GetLiveTvTimerAsync ( string id , CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-01-16 17:23:30 +00:00
/// <summary>
/// Gets the live tv series timers asynchronous.
/// </summary>
/// <param name="query">The query.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{QueryResult{SeriesTimerInfoDto}}.</returns>
Task < QueryResult < SeriesTimerInfoDto > > GetLiveTvSeriesTimersAsync ( SeriesTimerQuery query , CancellationToken cancellationToken ) ;
/// <summary>
/// Gets the live tv series timer asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{SeriesTimerInfoDto}.</returns>
Task < SeriesTimerInfoDto > GetLiveTvSeriesTimerAsync ( string id , CancellationToken cancellationToken ) ;
/// <summary>
/// Cancels the live tv timer asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task CancelLiveTvTimerAsync ( string id , CancellationToken cancellationToken ) ;
/// <summary>
/// Cancels the live tv series timer asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task CancelLiveTvSeriesTimerAsync ( string id , CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-01-16 17:23:30 +00:00
/// <summary>
/// Deletes the live tv recording asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task DeleteLiveTvRecordingAsync ( string id , CancellationToken cancellationToken ) ;
2014-03-08 18:17:05 +00:00
/// <summary>
/// Gets the default timer information.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{SeriesTimerInfoDto}.</returns>
Task < SeriesTimerInfoDto > GetDefaultLiveTvTimerInfo ( CancellationToken cancellationToken ) ;
/// <summary>
/// Gets the live tv guide information.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{GuideInfo}.</returns>
Task < GuideInfo > GetLiveTvGuideInfo ( CancellationToken cancellationToken ) ;
2014-03-13 09:18:32 +00:00
2014-03-08 18:17:05 +00:00
/// <summary>
/// Gets the default timer information.
/// </summary>
/// <param name="programId">The program identifier.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{SeriesTimerInfoDto}.</returns>
Task < SeriesTimerInfoDto > GetDefaultLiveTvTimerInfo ( string programId , CancellationToken cancellationToken ) ;
2013-06-03 00:21:35 +00:00
}
}