From d97a1af2631a3c86ccbb9a4d5b56389315c96e23 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 10 Jul 2013 08:37:14 -0400 Subject: [PATCH] added version number to apiclient --- MediaBrowser.Model/Dto/BaseItemDto.cs | 10 ++++++++++ MediaBrowser.WebDashboard/Api/DashboardService.cs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index dca2cef87..6519ad697 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -610,6 +610,16 @@ namespace MediaBrowser.Model.Dto get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Box); } } + /// + /// Gets a value indicating whether this instance has box image. + /// + /// true if this instance has box image; otherwise, false. + [IgnoreDataMember] + public bool HasBoxRearImage + { + get { return ImageTags != null && ImageTags.ContainsKey(ImageType.BoxRear); } + } + /// /// Gets a value indicating whether this instance has menu image. /// diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs index 184354a22..75ced2302 100644 --- a/MediaBrowser.WebDashboard/Api/DashboardService.cs +++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs @@ -512,7 +512,7 @@ namespace MediaBrowser.WebDashboard.Api var newLineBytes = Encoding.UTF8.GetBytes(Environment.NewLine); - var versionString = string.Format("window.dashboardVersion='{0}';", GetType().Assembly.GetName().Version); + var versionString = string.Format("window.dashboardVersion='{0}';", _appHost.ApplicationVersion); var versionBytes = Encoding.UTF8.GetBytes(versionString); await memoryStream.WriteAsync(versionBytes, 0, versionBytes.Length).ConfigureAwait(false);