2013-09-26 15:48:14 +00:00
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class LiveTvManager
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class LiveTvManager : ILiveTvManager
|
|
|
|
|
{
|
|
|
|
|
private readonly List<ILiveTvService> _services = new List<ILiveTvService>();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the services.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The services.</value>
|
|
|
|
|
public IReadOnlyList<ILiveTvService> Services
|
|
|
|
|
{
|
|
|
|
|
get { return _services; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds the parts.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="services">The services.</param>
|
|
|
|
|
public void AddParts(IEnumerable<ILiveTvService> services)
|
|
|
|
|
{
|
|
|
|
|
_services.AddRange(services);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the channel info dto.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">The info.</param>
|
|
|
|
|
/// <returns>ChannelInfoDto.</returns>
|
|
|
|
|
public ChannelInfoDto GetChannelInfoDto(ChannelInfo info)
|
|
|
|
|
{
|
|
|
|
|
return new ChannelInfoDto
|
|
|
|
|
{
|
|
|
|
|
Name = info.Name,
|
2013-10-02 15:32:11 +00:00
|
|
|
|
ServiceName = info.ServiceName,
|
2013-10-31 20:45:58 +00:00
|
|
|
|
ChannelType = info.ChannelType,
|
|
|
|
|
Id = info.Id
|
2013-09-26 15:48:14 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
2013-11-10 21:47:26 +00:00
|
|
|
|
|
|
|
|
|
public RecordingInfo GetRecordingInfo(RecordingInfo info)
|
|
|
|
|
{
|
|
|
|
|
return info;
|
|
|
|
|
}
|
2013-09-26 15:48:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|