2014-01-18 10:03:47 +00:00
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
2013-12-19 21:51:32 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2014-01-15 05:38:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2014-01-17 20:51:29 +00:00
|
|
|
|
using System.ComponentModel;
|
2013-10-31 20:45:58 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.LiveTv
|
|
|
|
|
{
|
2014-01-18 10:03:47 +00:00
|
|
|
|
[DebuggerDisplay("Name = {Name}, ChannelName = {ChannelName}")]
|
2014-01-17 18:23:00 +00:00
|
|
|
|
public class RecordingInfoDto : INotifyPropertyChanged
|
2013-10-31 20:45:58 +00:00
|
|
|
|
{
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id of the recording.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
2013-12-22 17:16:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the series timer identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The series timer identifier.</value>
|
|
|
|
|
public string SeriesTimerId { get; set; }
|
|
|
|
|
|
2013-11-25 21:53:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the external identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The external identifier.</value>
|
|
|
|
|
public string ExternalId { get; set; }
|
2013-12-02 21:46:22 +00:00
|
|
|
|
|
2013-11-25 21:53:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the program identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The program identifier.</value>
|
|
|
|
|
public string ProgramId { get; set; }
|
2013-12-02 21:46:22 +00:00
|
|
|
|
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ChannelId of the recording.
|
|
|
|
|
/// </summary>
|
2013-10-31 20:45:58 +00:00
|
|
|
|
public string ChannelId { get; set; }
|
|
|
|
|
|
2014-01-17 20:51:29 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the channel primary image tag.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The channel primary image tag.</value>
|
|
|
|
|
public Guid? ChannelPrimaryImageTag { get; set; }
|
|
|
|
|
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ChannelName of the recording.
|
|
|
|
|
/// </summary>
|
2013-10-31 20:45:58 +00:00
|
|
|
|
public string ChannelName { get; set; }
|
|
|
|
|
|
2013-12-15 14:19:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the service.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the service.</value>
|
|
|
|
|
public string ServiceName { get; set; }
|
|
|
|
|
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the recording.
|
|
|
|
|
/// </summary>
|
2013-10-31 20:45:58 +00:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
2014-01-01 18:26:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the media streams.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The media streams.</value>
|
|
|
|
|
public List<MediaStream> MediaStreams { get; set; }
|
|
|
|
|
|
2013-12-02 21:46:22 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The path.</value>
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// <summary>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
/// Overview of the recording.
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// </summary>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
public string Overview { get; set; }
|
2013-10-31 20:45:58 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// The start date of the recording, in UTC.
|
2013-10-31 20:45:58 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime StartDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-11-02 21:38:21 +00:00
|
|
|
|
/// The end date of the recording, in UTC.
|
2013-10-31 20:45:58 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime EndDate { get; set; }
|
2013-11-02 21:38:21 +00:00
|
|
|
|
|
2014-01-13 05:41:00 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the original air date.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The original air date.</value>
|
|
|
|
|
public DateTime? OriginalAirDate { get; set; }
|
|
|
|
|
|
2013-11-26 02:53:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The status.</value>
|
|
|
|
|
public RecordingStatus Status { get; set; }
|
2013-12-02 21:46:22 +00:00
|
|
|
|
|
2013-12-28 21:37:01 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the status.</value>
|
|
|
|
|
public string StatusName { get; set; }
|
2014-01-14 20:24:56 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the completion percentage.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The completion percentage.</value>
|
|
|
|
|
public double? CompletionPercentage { get; set; }
|
|
|
|
|
|
2013-12-02 21:46:22 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Genre of the program.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<string> Genres { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is repeat.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsRepeat { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the episode title.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The episode title.</value>
|
|
|
|
|
public string EpisodeTitle { get; set; }
|
|
|
|
|
|
2013-12-04 04:18:50 +00:00
|
|
|
|
/// <summary>
|
2013-12-20 20:09:49 +00:00
|
|
|
|
/// Gets or sets the run time ticks.
|
2013-12-04 04:18:50 +00:00
|
|
|
|
/// </summary>
|
2013-12-20 20:09:49 +00:00
|
|
|
|
/// <value>The run time ticks.</value>
|
|
|
|
|
public long? RunTimeTicks { get; set; }
|
2013-12-04 04:18:50 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the media.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the media.</value>
|
|
|
|
|
public string MediaType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the channel.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the channel.</value>
|
|
|
|
|
public ChannelType ChannelType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the official rating.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The official rating.</value>
|
|
|
|
|
public string OfficialRating { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the community rating.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The community rating.</value>
|
|
|
|
|
public float? CommunityRating { get; set; }
|
|
|
|
|
|
2013-12-04 20:55:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is hd.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool? IsHD { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the audio.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The audio.</value>
|
|
|
|
|
public ProgramAudio? Audio { get; set; }
|
|
|
|
|
|
2013-12-20 20:09:49 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is movie.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsMovie { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is sports.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsSports { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is series.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsSeries { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is live.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsLive { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is news.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsNews { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is kids.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsKids { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether this instance is premiere.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsPremiere { get; set; }
|
|
|
|
|
|
2013-12-19 21:51:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the image tags.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The image tags.</value>
|
|
|
|
|
public Dictionary<ImageType, Guid> ImageTags { get; set; }
|
|
|
|
|
|
2013-12-15 01:17:57 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The user data.</value>
|
|
|
|
|
public UserItemDataDto UserData { get; set; }
|
|
|
|
|
|
2013-12-19 21:51:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type.</value>
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
|
2013-12-02 21:46:22 +00:00
|
|
|
|
public RecordingInfoDto()
|
|
|
|
|
{
|
|
|
|
|
Genres = new List<string>();
|
2013-12-19 21:51:32 +00:00
|
|
|
|
ImageTags = new Dictionary<ImageType, Guid>();
|
2013-12-02 21:46:22 +00:00
|
|
|
|
}
|
2014-01-17 18:23:00 +00:00
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
2013-10-31 20:45:58 +00:00
|
|
|
|
}
|
2013-11-02 21:38:21 +00:00
|
|
|
|
}
|