2014-05-29 10:19:12 -04:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
2013-11-29 13:44:51 -05:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2014-02-23 00:52:30 -05:00
|
|
|
|
using MediaBrowser.Model.Library;
|
2014-05-29 10:19:12 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Diagnostics;
|
2016-10-21 22:08:34 -04:00
|
|
|
|
using MediaBrowser.Model.Serialization;
|
2013-11-24 15:51:45 -05:00
|
|
|
|
|
2013-09-26 11:48:14 -04:00
|
|
|
|
namespace MediaBrowser.Model.LiveTv
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Class ChannelInfoDto
|
|
|
|
|
|
/// </summary>
|
2014-01-18 10:03:47 +00:00
|
|
|
|
[DebuggerDisplay("Name = {Name}, Number = {Number}")]
|
2016-07-15 15:53:28 -04:00
|
|
|
|
public class ChannelInfoDto : IItemDto, IHasServerId
|
2013-09-26 11:48:14 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
|
public string Name { get; set; }
|
2014-10-29 21:17:31 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the server identifier.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The server identifier.</value>
|
|
|
|
|
|
public string ServerId { get; set; }
|
|
|
|
|
|
|
2013-11-15 16:31:44 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the identifier.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The identifier.</value>
|
2013-10-31 21:45:58 +01:00
|
|
|
|
public string Id { get; set; }
|
2013-11-29 13:44:51 -05:00
|
|
|
|
|
2013-12-17 15:02:12 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the external identifier.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The external identifier.</value>
|
|
|
|
|
|
public string ExternalId { get; set; }
|
2014-01-17 13:23:00 -05:00
|
|
|
|
|
2014-06-09 15:16:14 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the media sources.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The media sources.</value>
|
2014-03-30 12:49:40 -04:00
|
|
|
|
public List<MediaSourceInfo> MediaSources { get; set; }
|
|
|
|
|
|
|
2013-11-24 15:51:45 -05:00
|
|
|
|
/// <summary>
|
2013-11-29 13:44:51 -05:00
|
|
|
|
/// Gets or sets the image tags.
|
2013-11-24 15:51:45 -05:00
|
|
|
|
/// </summary>
|
2013-11-29 13:44:51 -05:00
|
|
|
|
/// <value>The image tags.</value>
|
2014-05-08 16:09:53 -04:00
|
|
|
|
public Dictionary<ImageType, string> ImageTags { get; set; }
|
2014-01-17 13:23:00 -05:00
|
|
|
|
|
2013-11-15 16:31:44 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the number.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The number.</value>
|
|
|
|
|
|
public string Number { get; set; }
|
2014-01-17 13:23:00 -05:00
|
|
|
|
|
2014-02-23 00:52:30 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the play access.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The play access.</value>
|
|
|
|
|
|
public PlayAccess PlayAccess { get; set; }
|
|
|
|
|
|
|
2013-09-26 11:48:14 -04: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 11:32:11 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the type of the channel.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The type of the channel.</value>
|
2014-06-01 00:11:04 -04:00
|
|
|
|
public ChannelType ChannelType { get; set; }
|
2013-11-24 16:30:38 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The type.</value>
|
|
|
|
|
|
public string Type { get; set; }
|
2013-11-24 18:37:38 -05: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-25 21:53:48 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the user data.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The user data.</value>
|
|
|
|
|
|
public UserItemDataDto UserData { get; set; }
|
2013-11-29 13:44:51 -05:00
|
|
|
|
|
2014-01-02 16:21:06 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the now playing program.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value>The now playing program.</value>
|
2015-05-31 15:12:58 -04:00
|
|
|
|
public BaseItemDto CurrentProgram { get; set; }
|
2014-01-02 16:21:06 -05:00
|
|
|
|
|
2014-01-14 15:03:35 -05: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; }
|
|
|
|
|
|
|
2014-01-20 14:55:49 -05: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 13:44:51 -05:00
|
|
|
|
public ChannelInfoDto()
|
|
|
|
|
|
{
|
2014-05-08 16:09:53 -04:00
|
|
|
|
ImageTags = new Dictionary<ImageType, string>();
|
2014-03-30 12:49:40 -04:00
|
|
|
|
MediaSources = new List<MediaSourceInfo>();
|
2013-11-29 13:44:51 -05:00
|
|
|
|
}
|
2013-09-26 11:48:14 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|