2014-05-29 14:19:12 +00:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
2013-11-29 18:44:51 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2014-02-23 05:52:30 +00:00
|
|
|
|
using MediaBrowser.Model.Library;
|
2014-05-29 14:19:12 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Runtime.Serialization;
|
2013-11-24 20:51:45 +00:00
|
|
|
|
|
2013-09-26 15:48:14 +00:00
|
|
|
|
namespace MediaBrowser.Model.LiveTv
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class ChannelInfoDto
|
|
|
|
|
/// </summary>
|
2014-01-18 10:03:47 +00:00
|
|
|
|
[DebuggerDisplay("Name = {Name}, Number = {Number}")]
|
2014-01-17 18:23:00 +00:00
|
|
|
|
public class ChannelInfoDto : INotifyPropertyChanged, IItemDto
|
2013-09-26 15:48:14 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
public string Name { get; set; }
|
2014-05-29 14:19:12 +00:00
|
|
|
|
|
2013-11-15 21:31:44 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The identifier.</value>
|
2013-10-31 20:45:58 +00:00
|
|
|
|
public string Id { get; set; }
|
2013-11-29 18:44:51 +00:00
|
|
|
|
|
2013-12-17 20:02:12 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the external identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The external identifier.</value>
|
|
|
|
|
public string ExternalId { get; set; }
|
2014-01-17 18:23:00 +00:00
|
|
|
|
|
2014-03-30 16:49:40 +00:00
|
|
|
|
public List<MediaSourceInfo> MediaSources { get; set; }
|
|
|
|
|
|
2013-11-24 20:51:45 +00:00
|
|
|
|
/// <summary>
|
2013-11-29 18:44:51 +00:00
|
|
|
|
/// Gets or sets the image tags.
|
2013-11-24 20:51:45 +00:00
|
|
|
|
/// </summary>
|
2013-11-29 18:44:51 +00:00
|
|
|
|
/// <value>The image tags.</value>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
public Dictionary<ImageType, string> ImageTags { get; set; }
|
2014-01-17 18:23:00 +00:00
|
|
|
|
|
2013-11-15 21:31:44 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the number.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The number.</value>
|
|
|
|
|
public string Number { get; set; }
|
2014-01-17 18:23:00 +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-09-26 15:48:14 +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-10-02 15:32:11 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the channel.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the channel.</value>
|
2014-05-31 15:13:07 +00:00
|
|
|
|
public LiveTvChannelType ChannelType { get; set; }
|
2013-11-24 21:30:38 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type.</value>
|
|
|
|
|
public string Type { get; set; }
|
2013-11-24 23:37:38 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the media.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the media.</value>
|
|
|
|
|
public string MediaType { get; set; }
|
2013-11-26 02:53:48 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The user data.</value>
|
|
|
|
|
public UserItemDataDto UserData { get; set; }
|
2013-11-29 18:44:51 +00:00
|
|
|
|
|
2014-01-02 21:21:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the now playing program.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The now playing program.</value>
|
|
|
|
|
public ProgramInfoDto CurrentProgram { get; set; }
|
|
|
|
|
|
2014-01-14 20:03:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the primary image aspect ratio, after image enhancements.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The primary image aspect ratio.</value>
|
|
|
|
|
public double? PrimaryImageAspectRatio { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the primary image aspect ratio, before image enhancements.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The original primary image aspect ratio.</value>
|
|
|
|
|
public double? OriginalPrimaryImageAspectRatio { get; set; }
|
2014-01-17 18:23:00 +00:00
|
|
|
|
|
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-29 18:44:51 +00:00
|
|
|
|
public ChannelInfoDto()
|
|
|
|
|
{
|
2014-05-08 20:09:53 +00:00
|
|
|
|
ImageTags = new Dictionary<ImageType, string>();
|
2014-03-30 16:49:40 +00:00
|
|
|
|
MediaSources = new List<MediaSourceInfo>();
|
2013-11-29 18:44:51 +00:00
|
|
|
|
}
|
2014-01-17 18:23:00 +00:00
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
2013-09-26 15:48:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|