aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/LiveTv/IGuideManager.cs
blob: 9883b9283c97ed8da74462f15ec67ab3c3c69905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
}