diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-15 00:38:08 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-15 00:38:08 -0500 |
| commit | ca831ae88aaefb07f98d1a337792ea4af608fed0 (patch) | |
| tree | 6807843588bbd13e338559b13f3905ed55f5b51f /MediaBrowser.Model/ApiClient | |
| parent | c07d958df9589120251dc6c3f0aa3a083d87fc27 (diff) | |
added live tv events
Diffstat (limited to 'MediaBrowser.Model/ApiClient')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IApiClient.cs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index c5b5311b2..55ca9edc7 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -2,6 +2,7 @@ using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Globalization; +using MediaBrowser.Model.LiveTv; using MediaBrowser.Model.Notifications; using MediaBrowser.Model.Plugins; using MediaBrowser.Model.Querying; @@ -749,6 +750,22 @@ namespace MediaBrowser.Model.ApiClient string GetImageUrl(BaseItemDto 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(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); + + /// <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> @@ -918,5 +935,36 @@ namespace MediaBrowser.Model.ApiClient /// <returns>System.String.</returns> /// <exception cref="ArgumentNullException">options</exception> string GetHlsVideoStreamUrl(VideoStreamOptions options); + + /// <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); + + /// <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); + + /// <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); } }
\ No newline at end of file |
