aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/LiveTv/IGuideManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2024-01-17 09:50:35 -0500
committerPatrick Barron <barronpm@gmail.com>2024-01-17 09:52:11 -0500
commit59c2ae944ddc0b4231f4e99863cf4c2f2a16e66f (patch)
tree4bee0b52f8a93f7b11007d9ea6e75a2611716383 /MediaBrowser.Controller/LiveTv/IGuideManager.cs
parent484ccf7f284dcd074e06ed90af6cde4864adecea (diff)
Add IGuideManager service
Diffstat (limited to 'MediaBrowser.Controller/LiveTv/IGuideManager.cs')
-rw-r--r--MediaBrowser.Controller/LiveTv/IGuideManager.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/LiveTv/IGuideManager.cs b/MediaBrowser.Controller/LiveTv/IGuideManager.cs
new file mode 100644
index 0000000000..9883b9283c
--- /dev/null
+++ b/MediaBrowser.Controller/LiveTv/IGuideManager.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using MediaBrowser.Model.LiveTv;
+
+namespace MediaBrowser.Controller.LiveTv;
+
+/// <summary>
+/// Service responsible for managing the Live TV guide.
+/// </summary>
+public interface IGuideManager
+{
+ /// <summary>
+ /// Gets the guide information.
+ /// </summary>
+ /// <returns>The <see cref="GuideInfo"/>.</returns>
+ GuideInfo GetGuideInfo();
+
+ /// <summary>
+ /// Refresh the guide.
+ /// </summary>
+ /// <param name="progress">The <see cref="IProgress{T}"/> to use.</param>
+ /// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
+ /// <returns>Task representing the refresh operation.</returns>
+ Task RefreshGuide(IProgress<double> progress, CancellationToken cancellationToken);
+}