jellyfin/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs

37 lines
909 B
C#
Raw Normal View History

2013-12-19 14:51:32 -07:00
using MediaBrowser.Controller.Entities;
2013-12-22 11:58:51 -07:00
using MediaBrowser.Model.LiveTv;
2013-12-19 14:51:32 -07:00
namespace MediaBrowser.Controller.LiveTv
{
public class LiveTvProgram : BaseItem
{
/// <summary>
/// Gets the user data key.
/// </summary>
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
return GetClientTypeName() + "-" + Name;
}
public ProgramInfo ProgramInfo { get; set; }
2013-12-22 11:58:51 -07:00
public ChannelType ChannelType { get; set; }
2013-12-19 14:51:32 -07:00
public string ServiceName { get; set; }
public override string MediaType
{
get
{
2013-12-22 11:58:51 -07:00
return ChannelType == ChannelType.TV ? Model.Entities.MediaType.Video : Model.Entities.MediaType.Audio;
2013-12-19 14:51:32 -07:00
}
}
public override string GetClientTypeName()
{
return "Program";
}
}
}