using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Net; using MediaBrowser.Controller.LiveTv; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using MediaBrowser.Model.Logging; using MediaBrowser.Model.Serialization; namespace MediaBrowser.Plugins.NextPvr { /// /// Class LiveTvService /// public class LiveTvService : ILiveTvService { private readonly ILogger _logger; private IApplicationPaths _appPaths; private IJsonSerializer _json; private IHttpClient _httpClient; public LiveTvService(ILogger logger) { _logger = logger; } /// /// Gets the channels async. /// /// The cancellation token. /// Task{IEnumerable{ChannelInfo}}. public Task> GetChannelsAsync(CancellationToken cancellationToken) { //using (var stream = await _httpClient.Get(new HttpRequestOptions() // { // Url = "", // CancellationToken = cancellationToken // })) //{ //} _logger.Info("GetChannelsAsync"); var channels = new List { new ChannelInfo { Name = "NBC", ServiceName = Name } }; return Task.FromResult>(channels); } /// /// Gets the name. /// /// The name. public string Name { get { return "Next Pvr"; } } } }