using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Model.LiveTv;
using System.Collections.Generic;
namespace MediaBrowser.Server.Implementations.LiveTv
{
///
/// Class LiveTvManager
///
public class LiveTvManager : ILiveTvManager
{
private readonly List _services = new List();
///
/// Gets the services.
///
/// The services.
public IReadOnlyList Services
{
get { return _services; }
}
///
/// Adds the parts.
///
/// The services.
public void AddParts(IEnumerable services)
{
_services.AddRange(services);
}
///
/// Gets the channel info dto.
///
/// The info.
/// ChannelInfoDto.
public ChannelInfoDto GetChannelInfoDto(ChannelInfo info)
{
return new ChannelInfoDto
{
Name = info.Name,
ServiceName = info.ServiceName,
ChannelType = info.ChannelType,
Id = info.Id
};
}
public RecordingInfo GetRecordingInfo(RecordingInfo info)
{
return info;
}
}
}