mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 18:42:52 -07:00
34 lines
812 B
C#
34 lines
812 B
C#
using MediaBrowser.Controller.Entities;
|
|
|
|
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; }
|
|
|
|
public string ServiceName { get; set; }
|
|
|
|
public override string MediaType
|
|
{
|
|
get
|
|
{
|
|
return ProgramInfo.IsVideo ? Model.Entities.MediaType.Video : Model.Entities.MediaType.Audio;
|
|
}
|
|
}
|
|
|
|
public override string GetClientTypeName()
|
|
{
|
|
return "Program";
|
|
}
|
|
}
|
|
}
|