jellyfin/MediaBrowser.Controller/LiveTv/ILiveTvRecording.cs

49 lines
1.4 KiB
C#
Raw Normal View History

using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Library;
2015-06-01 17:07:55 +00:00
using MediaBrowser.Model.LiveTv;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.LiveTv
{
2017-08-07 21:06:13 +00:00
public interface ILiveTvRecording : IHasMetadata, IHasMediaSources, IHasUserData, IHasStartDate, IHasProgramAttributes
{
2016-03-19 21:17:08 +00:00
string ServiceName { get; set; }
string ExternalId { get; set; }
2015-06-01 17:07:55 +00:00
string ChannelId { get; }
string MediaType { get; }
string Container { get; }
string GetClientTypeName();
bool IsParentalAllowed(User user);
Task<ItemUpdateType> RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken);
2014-02-23 05:52:30 +00:00
PlayAccess GetPlayAccess(User user);
2015-02-06 05:39:07 +00:00
bool CanDelete();
bool CanDelete(User user);
2015-06-01 17:07:55 +00:00
string SeriesTimerId { get; set; }
2016-10-09 07:18:43 +00:00
string TimerId { get; set; }
2015-06-01 17:07:55 +00:00
RecordingStatus Status { get; set; }
DateTime? EndDate { get; set; }
2015-08-18 15:25:57 +00:00
DateTime DateCreated { get; set; }
}
2017-08-23 19:45:52 +00:00
public class ActiveRecordingInfo
{
public string Id { get; set; }
public string Path { get; set; }
public TimerInfo Timer { get; set; }
public ProgramInfo Program { get; set; }
public CancellationTokenSource CancellationTokenSource { get; set; }
}
}