diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-16 12:23:30 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-16 12:23:30 -0500 |
| commit | b4690123049a70a11101b27af6baaee3572d1549 (patch) | |
| tree | d56b5bb7890ba76180877de0cbbbe403af830b1a /MediaBrowser.Model | |
| parent | 7d81888038a007eb84c6240acb80bf7ca611eb5c (diff) | |
add tv service status reporting
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IApiClient.cs | 83 | ||||
| -rw-r--r-- | MediaBrowser.Model/Configuration/ServerConfiguration.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs | 18 |
3 files changed, 102 insertions, 1 deletions
diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 55ca9edc78..edabd4abac 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -952,6 +952,15 @@ namespace MediaBrowser.Model.ApiClient Task<QueryResult<ChannelInfoDto>> GetLiveTvChannelsAsync(ChannelQuery query, CancellationToken cancellationToken); /// <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); + + /// <summary> /// Gets the live tv recordings asynchronous. /// </summary> /// <param name="query">The query.</param> @@ -960,11 +969,85 @@ namespace MediaBrowser.Model.ApiClient Task<QueryResult<RecordingInfoDto>> GetLiveTvRecordingsAsync(RecordingQuery query, CancellationToken cancellationToken); /// <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); + + /// <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); + + /// <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); + + /// <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); + + /// <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); + + /// <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); + + /// <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); } }
\ No newline at end of file diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index f7b4cf3735..281f1350c4 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -234,7 +234,7 @@ namespace MediaBrowser.Model.Configuration : base() { MediaEncodingQuality = EncodingQuality.HighSpeed; - ImageSavingConvention = ImageSavingConvention.Legacy; + ImageSavingConvention = ImageSavingConvention.Compatible; HttpServerPortNumber = 8096; LegacyWebSocketPortNumber = 8945; EnableHttpLevelLogging = true; diff --git a/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs b/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs index c93779b5a9..f59a707adf 100644 --- a/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs +++ b/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs @@ -13,6 +13,18 @@ namespace MediaBrowser.Model.LiveTv /// </summary> /// <value>The name.</value> public string Name { get; set; } + + /// <summary> + /// Gets or sets the status. + /// </summary> + /// <value>The status.</value> + public LiveTvServiceStatus Status { get; set; } + + /// <summary> + /// Gets or sets the status message. + /// </summary> + /// <value>The status message.</value> + public string StatusMessage { get; set; } } public class GuideInfo @@ -49,4 +61,10 @@ namespace MediaBrowser.Model.LiveTv Services = new List<LiveTvServiceInfo>(); } } + + public enum LiveTvServiceStatus + { + Ok = 0, + Unavailable = 1 + } } |
