From f4b890f163cd3be5b399ef03be409106ab8ff60b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 14 Jan 2014 15:03:35 -0500 Subject: added new item by name filters --- MediaBrowser.Model/ApiClient/ApiClientExtensions.cs | 4 ++-- MediaBrowser.Model/LiveTv/ChannelInfoDto.cs | 14 +++++++++++++- MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Model') diff --git a/MediaBrowser.Model/ApiClient/ApiClientExtensions.cs b/MediaBrowser.Model/ApiClient/ApiClientExtensions.cs index 0c4dbfd658..98e99b1ccb 100644 --- a/MediaBrowser.Model/ApiClient/ApiClientExtensions.cs +++ b/MediaBrowser.Model/ApiClient/ApiClientExtensions.cs @@ -1,7 +1,7 @@ -using System.IO; +using MediaBrowser.Model.Dto; +using System.IO; using System.Threading; using System.Threading.Tasks; -using MediaBrowser.Model.Dto; namespace MediaBrowser.Model.ApiClient { diff --git a/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs b/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs index 7ee86ffac6..afce042308 100644 --- a/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs @@ -8,7 +8,7 @@ namespace MediaBrowser.Model.LiveTv /// /// Class ChannelInfoDto /// - public class ChannelInfoDto + public class ChannelInfoDto : IItemDto { /// /// Gets or sets the name. @@ -76,6 +76,18 @@ namespace MediaBrowser.Model.LiveTv /// The now playing program. public ProgramInfoDto CurrentProgram { get; set; } + /// + /// Gets or sets the primary image aspect ratio, after image enhancements. + /// + /// The primary image aspect ratio. + public double? PrimaryImageAspectRatio { get; set; } + + /// + /// Gets or sets the primary image aspect ratio, before image enhancements. + /// + /// The original primary image aspect ratio. + public double? OriginalPrimaryImageAspectRatio { get; set; } + public ChannelInfoDto() { ImageTags = new Dictionary(); diff --git a/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs b/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs index a25207509b..c93779b5a9 100644 --- a/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs +++ b/MediaBrowser.Model/LiveTv/LiveTvServiceInfo.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; namespace MediaBrowser.Model.LiveTv { @@ -28,4 +29,24 @@ namespace MediaBrowser.Model.LiveTv /// The end date. public DateTime EndDate { get; set; } } + + public class LiveTvInfo + { + /// + /// Gets or sets the services. + /// + /// The services. + public List Services { get; set; } + + /// + /// Gets or sets the name of the active service. + /// + /// The name of the active service. + public string ActiveServiceName { get; set; } + + public LiveTvInfo() + { + Services = new List(); + } + } } -- cgit v1.2.3