jellyfin-server/MediaBrowser.Controller/LiveTv/LiveTvRecording.cs

44 lines
1.0 KiB
C#
Raw Normal View History

2013-12-19 21:51:32 +00:00
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.LiveTv;
namespace MediaBrowser.Controller.LiveTv
{
public class LiveTvRecording : BaseItem
{
/// <summary>
/// Gets the user data key.
/// </summary>
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
return GetClientTypeName() + "-" + Name;
}
public RecordingInfo RecordingInfo { get; set; }
public string ServiceName { get; set; }
public override string MediaType
{
get
{
return RecordingInfo.ChannelType == ChannelType.Radio ? Model.Entities.MediaType.Audio : Model.Entities.MediaType.Video;
}
}
public override LocationType LocationType
{
get
{
return LocationType.Remote;
}
}
public override string GetClientTypeName()
{
return "Recording";
}
}
}