diff options
| author | Niels van Velzen <nielsvanvelzen@users.noreply.github.com> | 2026-05-05 15:53:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-05 15:53:19 +0200 |
| commit | 4178e0ebaf2ff7162f474e17e27cd5bbbfafd548 (patch) | |
| tree | 819a9ec8361334847d8601448273cd71f2aae20a /MediaBrowser.Controller/LiveTv/ISchedulesDirectService.cs | |
| parent | 064fd8c5c0946ccecc686606528faa8f3b47dc96 (diff) | |
| parent | 6be96100c72a77b5c1db5921ec731ee002b7c48d (diff) | |
Fix EPG issues
Diffstat (limited to 'MediaBrowser.Controller/LiveTv/ISchedulesDirectService.cs')
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/ISchedulesDirectService.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/LiveTv/ISchedulesDirectService.cs b/MediaBrowser.Controller/LiveTv/ISchedulesDirectService.cs new file mode 100644 index 0000000000..6953650952 --- /dev/null +++ b/MediaBrowser.Controller/LiveTv/ISchedulesDirectService.cs @@ -0,0 +1,31 @@ +using System.IO; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.LiveTv; + +/// <summary> +/// Provides Schedules Direct specific operations. +/// </summary> +public interface ISchedulesDirectService +{ + /// <summary> + /// Gets the available countries from the Schedules Direct API, using a file cache. + /// </summary> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>A stream containing the raw JSON response.</returns> + Task<Stream> GetAvailableCountries(CancellationToken cancellationToken); + + /// <summary> + /// Gets a value indicating whether the Schedules Direct daily image download limit is currently active. + /// </summary> + /// <returns><c>true</c> if the image limit has been hit and has not yet reset; otherwise <c>false</c>.</returns> + bool IsImageDailyLimitActive(); + + /// <summary> + /// Gets a value indicating whether the Schedules Direct service is available. + /// Returns <c>false</c> if a permanent account error has occurred or a transient backoff is active. + /// </summary> + /// <returns><c>true</c> if the service can accept requests; otherwise <c>false</c>.</returns> + bool IsServiceAvailable(); +} |
