44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
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";
|
|
}
|
|
}
|
|
}
|