Luke Pulverenti пре 12 година
родитељ
комит
0acc257354

+ 1 - 0
MediaBrowser.Controller/Dto/DtoBuilder.cs

@@ -519,6 +519,7 @@ namespace MediaBrowser.Controller.Dto
             if (game != null)
             {
                 dto.Players = game.PlayersSupported;
+                dto.GameSystem = game.GameSystem;
             }
         }
 

+ 27 - 0
MediaBrowser.Controller/Entities/Game.cs

@@ -0,0 +1,27 @@
+
+namespace MediaBrowser.Controller.Entities
+{
+    public class Game : BaseItem
+    {
+        /// <summary>
+        /// Gets the type of the media.
+        /// </summary>
+        /// <value>The type of the media.</value>
+        public override string MediaType
+        {
+            get { return Model.Entities.MediaType.Game; }
+        }
+
+        /// <summary>
+        /// Gets or sets the players supported.
+        /// </summary>
+        /// <value>The players supported.</value>
+        public int? PlayersSupported { get; set; }
+
+        /// <summary>
+        /// Gets or sets the game system.
+        /// </summary>
+        /// <value>The game system.</value>
+        public string GameSystem { get; set; }
+    }
+}

+ 1 - 0
MediaBrowser.Controller/MediaBrowser.Controller.csproj

@@ -75,6 +75,7 @@
     <Compile Include="Entities\Audio\MusicAlbumDisc.cs" />
     <Compile Include="Entities\Audio\MusicGenre.cs" />
     <Compile Include="Entities\ChildDefinition.cs" />
+    <Compile Include="Entities\Game.cs" />
     <Compile Include="Entities\IByReferenceItem.cs" />
     <Compile Include="Entities\MusicVideo.cs" />
     <Compile Include="Library\ILibraryPostScanTask.cs" />

+ 7 - 0
MediaBrowser.Model/ApiClient/IApiClient.cs

@@ -64,6 +64,13 @@ namespace MediaBrowser.Model.ApiClient
         /// <returns>Task{SessionInfoDto[]}.</returns>
         Task<SessionInfoDto[]> GetClientSessionsAsync();
 
+        /// <summary>
+        /// Gets the item counts async.
+        /// </summary>
+        /// <param name="userId">The user id.</param>
+        /// <returns>Task{ItemCounts}.</returns>
+        Task<ItemCounts> GetItemCountsAsync(string userId);
+        
         /// <summary>
         /// Queries for items
         /// </summary>

+ 6 - 0
MediaBrowser.Model/Dto/BaseItemDto.cs

@@ -48,6 +48,12 @@ namespace MediaBrowser.Model.Dto
         /// <value>The critic rating.</value>
         public float? CriticRating { get; set; }
 
+        /// <summary>
+        /// Gets or sets the game system.
+        /// </summary>
+        /// <value>The game system.</value>
+        public string GameSystem { get; set; }
+        
         /// <summary>
         /// Gets or sets the critic rating summary.
         /// </summary>

+ 2 - 2
Nuget/MediaBrowser.Common.Internal.nuspec

@@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
     <metadata>
         <id>MediaBrowser.Common.Internal</id>
-        <version>3.0.127</version>
+        <version>3.0.128</version>
         <title>MediaBrowser.Common.Internal</title>
         <authors>Luke</authors>
         <owners>ebr,Luke,scottisafool</owners>
@@ -12,7 +12,7 @@
         <description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
         <copyright>Copyright © Media Browser 2013</copyright>
         <dependencies>
-            <dependency id="MediaBrowser.Common" version="3.0.127" />
+            <dependency id="MediaBrowser.Common" version="3.0.128" />
             <dependency id="NLog" version="2.0.1.2" />
             <dependency id="ServiceStack.Text" version="3.9.45" />
             <dependency id="SimpleInjector" version="2.2.3" />

+ 1 - 1
Nuget/MediaBrowser.Common.nuspec

@@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
     <metadata>
         <id>MediaBrowser.Common</id>
-        <version>3.0.127</version>
+        <version>3.0.128</version>
         <title>MediaBrowser.Common</title>
         <authors>Media Browser Team</authors>
         <owners>ebr,Luke,scottisafool</owners>

+ 2 - 2
Nuget/MediaBrowser.Server.Core.nuspec

@@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
     <metadata>
         <id>MediaBrowser.Server.Core</id>
-        <version>3.0.127</version>
+        <version>3.0.128</version>
         <title>Media Browser.Server.Core</title>
         <authors>Media Browser Team</authors>
         <owners>ebr,Luke,scottisafool</owners>
@@ -12,7 +12,7 @@
         <description>Contains core components required to build plugins for Media Browser Server.</description>
         <copyright>Copyright © Media Browser 2013</copyright>
         <dependencies>
-            <dependency id="MediaBrowser.Common" version="3.0.127" />
+            <dependency id="MediaBrowser.Common" version="3.0.128" />
         </dependencies>
     </metadata>
     <files>