2015-01-05 00:49:22 +00:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
2013-12-19 21:51:32 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2014-06-29 19:59:52 +00:00
|
|
|
|
using MediaBrowser.Model.Extensions;
|
2014-02-23 05:52:30 +00:00
|
|
|
|
using MediaBrowser.Model.Library;
|
2015-01-05 00:49:22 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Runtime.Serialization;
|
2013-11-15 21:31:33 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.LiveTv
|
|
|
|
|
{
|
2014-01-18 10:03:47 +00:00
|
|
|
|
[DebuggerDisplay("Name = {Name}, StartTime = {StartDate}, EndTime = {EndDate}")]
|
2014-10-30 01:17:31 +00:00
|
|
|
|
public class ProgramInfoDto : IHasPropertyChangedEvent, IItemDto, IHasServerId
|
2013-11-15 21:31:33 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id of the program.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
2014-05-29 14:19:12 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the primary image aspect ratio.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The primary image aspect ratio.</value>
|
|
|
|
|
public double? PrimaryImageAspectRatio { get; set; }
|
|
|
|
|
|
2014-10-30 01:17:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the server identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The server identifier.</value>
|
|
|
|
|
public string ServerId { get; set; }
|
|
|
|
|
|
2014-05-29 14:19:12 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the original primary image aspect ratio.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The original primary image aspect ratio.</value>
|
|
|
|
|
public double? OriginalPrimaryImageAspectRatio { get; set; }
|
2014-06-07 19:46:24 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the media.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the media.</value>
|
|
|
|
|
public string MediaType { get; set; }
|
2014-05-29 14:19:12 +00:00
|
|
|
|
|
2013-12-21 18:37:34 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the timer identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The timer identifier.</value>
|
|
|
|
|
public string TimerId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the series timer identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The series timer identifier.</value>
|
|
|
|
|
public string SeriesTimerId { get; set; }
|
|
|
|
|
|
2013-11-25 20:39:23 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the external identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The external identifier.</value>
|
|
|
|
|
public string ExternalId { get; set; }
|
|
|
|
|
|
2013-11-25 16:15:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the channel identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The channel identifier.</value>
|
|
|
|
|
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>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
public string ChannelPrimaryImageTag { get; set; }
|
2014-01-17 20:51:29 +00:00
|
|
|
|
|
2014-02-23 05:52:30 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the play access.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The play access.</value>
|
|
|
|
|
public PlayAccess PlayAccess { get; set; }
|
|
|
|
|
|
2013-12-16 18:44:03 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of the channel.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name of the channel.</value>
|
|
|
|
|
public string ChannelName { get; set; }
|
|
|
|
|
|
2013-11-26 16:22:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the community rating.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The community rating.</value>
|
|
|
|
|
public float? CommunityRating { get; set; }
|
2013-11-26 21:36:11 +00:00
|
|
|
|
|
2013-11-26 02:53:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the official rating.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The official rating.</value>
|
|
|
|
|
public string OfficialRating { get; set; }
|
2015-03-14 20:56:50 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the production year.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The production year.</value>
|
|
|
|
|
public int? ProductionYear { get; set; }
|
|
|
|
|
|
2013-11-25 16:15:31 +00:00
|
|
|
|
/// <summary>
|
2013-11-25 20:39:23 +00:00
|
|
|
|
/// Gets or sets the name of the service.
|
2013-11-25 16:15:31 +00:00
|
|
|
|
/// </summary>
|
2013-11-25 20:39:23 +00:00
|
|
|
|
/// <value>The name of the service.</value>
|
|
|
|
|
public string ServiceName { get; set; }
|
|
|
|
|
|
2013-11-15 21:31:33 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the program
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
/// Overview of the recording.
|
2013-11-15 21:31:33 +00:00
|
|
|
|
/// </summary>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
public string Overview { get; set; }
|
2013-11-15 21:31:33 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The start date of the program, in UTC.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime StartDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The end date of the program, in UTC.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime EndDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Genre of the program.
|
|
|
|
|
/// </summary>
|
2013-11-25 20:39:23 +00:00
|
|
|
|
public List<string> Genres { get; set; }
|
|
|
|
|
|
2013-11-26 02:53:48 +00:00
|
|
|
|
/// <summary>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
/// Gets or sets a value indicating whether this instance is hd.
|
2013-11-26 02:53:48 +00:00
|
|
|
|
/// </summary>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
/// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool? IsHD { get; set; }
|
2013-11-26 02:53:48 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the audio.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The audio.</value>
|
2013-12-04 20:55:42 +00:00
|
|
|
|
public ProgramAudio? Audio { get; set; }
|
2013-11-26 02:53:48 +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 21:36:11 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-12-02 21:46:22 +00:00
|
|
|
|
/// Gets or sets a value indicating whether this instance is repeat.
|
2013-11-26 21:36:11 +00:00
|
|
|
|
/// </summary>
|
2013-12-02 21:46:22 +00:00
|
|
|
|
/// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool IsRepeat { get; set; }
|
2013-11-26 21:36:11 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-12-02 21:46:22 +00:00
|
|
|
|
/// Gets or sets the episode title.
|
2013-11-26 21:36:11 +00:00
|
|
|
|
/// </summary>
|
2013-12-02 21:46:22 +00:00
|
|
|
|
/// <value>The episode title.</value>
|
|
|
|
|
public string EpisodeTitle { get; set; }
|
2013-11-27 02:38:11 +00:00
|
|
|
|
|
2013-12-19 21:51:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the image tags.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The image tags.</value>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
public Dictionary<ImageType, string> ImageTags { get; set; }
|
2013-12-19 21:51:32 +00:00
|
|
|
|
|
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-18 05:44:46 +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; }
|
|
|
|
|
|
2013-12-20 20:09:49 +00:00
|
|
|
|
/// <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; }
|
|
|
|
|
|
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-20 20:09:49 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the run time ticks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The run time ticks.</value>
|
|
|
|
|
public long? RunTimeTicks { 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; }
|
|
|
|
|
|
2014-01-20 19:55:49 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a value indicating whether this instance has primary image.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public bool HasPrimaryImage
|
|
|
|
|
{
|
|
|
|
|
get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-25 20:39:23 +00:00
|
|
|
|
public ProgramInfoDto()
|
|
|
|
|
{
|
|
|
|
|
Genres = new List<string>();
|
2014-05-08 20:09:53 +00:00
|
|
|
|
ImageTags = new Dictionary<ImageType, string>();
|
2013-11-25 20:39:23 +00:00
|
|
|
|
}
|
2014-01-17 18:23:00 +00:00
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
2013-11-15 21:31:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|