mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
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,
|
|
ServiceName = info.ServiceName,
|
|
ChannelType = info.ChannelType
|
|
};
|
|
}
|
|
}
|
|
}
|