diff options
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/DTO/ApiBaseItem.cs (renamed from MediaBrowser.Model/Entities/ApiBaseItem.cs) | 16 | ||||
| -rw-r--r-- | MediaBrowser.Model/DTO/CategoryInfo.cs (renamed from MediaBrowser.Model/Entities/CategoryInfo.cs) | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/DTO/PluginInfo.cs (renamed from MediaBrowser.Model/Plugins/PluginInfo.cs) | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/BaseItem.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Model/MediaBrowser.Model.csproj | 6 |
5 files changed, 19 insertions, 11 deletions
diff --git a/MediaBrowser.Model/Entities/ApiBaseItem.cs b/MediaBrowser.Model/DTO/ApiBaseItem.cs index e40fdc25f8..d6b0f4a047 100644 --- a/MediaBrowser.Model/Entities/ApiBaseItem.cs +++ b/MediaBrowser.Model/DTO/ApiBaseItem.cs @@ -1,8 +1,9 @@ using System;
using System.Collections.Generic;
+using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Users;
-namespace MediaBrowser.Model.Entities
+namespace MediaBrowser.Model.DTO
{
/// <summary>
/// This is a concrete class that the UI can use to deserialize
@@ -10,7 +11,7 @@ namespace MediaBrowser.Model.Entities /// </summary>
public class ApiBaseItem : BaseItem
{
- // TV Series
+ // Series properties
public string Status { get; set; }
public IEnumerable<DayOfWeek> AirDays { get; set; }
public string AirTime { get; set; }
@@ -19,14 +20,14 @@ namespace MediaBrowser.Model.Entities /// <summary>
/// This is the full return object when requesting an Item
/// </summary>
- public class ApiBaseItemWrapper<T>
+ public class BaseItemWrapper<T>
where T : BaseItem
{
public T Item { get; set; }
public UserItemData UserItemData { get; set; }
- public IEnumerable<ApiBaseItemWrapper<T>> Children { get; set; }
+ public IEnumerable<BaseItemWrapper<T>> Children { get; set; }
public bool IsFolder { get; set; }
@@ -55,4 +56,11 @@ namespace MediaBrowser.Model.Entities public int? ParentBackdropCount { get; set; }
}
+
+ /// <summary>
+ /// This is strictly for convenience so the UI's don't have to use the verbose generic syntax of BaseItemWrapper<ApiBaseItem>
+ /// </summary>
+ public class ApiBaseItemWrapper : BaseItemWrapper<ApiBaseItem>
+ {
+ }
}
diff --git a/MediaBrowser.Model/Entities/CategoryInfo.cs b/MediaBrowser.Model/DTO/CategoryInfo.cs index 934a0ae1d1..e6b2aeafb0 100644 --- a/MediaBrowser.Model/Entities/CategoryInfo.cs +++ b/MediaBrowser.Model/DTO/CategoryInfo.cs @@ -1,5 +1,5 @@
-namespace MediaBrowser.Model.Entities
+namespace MediaBrowser.Model.DTO
{
/// <summary>
/// This is a stub class used by the api to get IBN types along with their item counts
diff --git a/MediaBrowser.Model/Plugins/PluginInfo.cs b/MediaBrowser.Model/DTO/PluginInfo.cs index e08128fd7b..76e9026a6b 100644 --- a/MediaBrowser.Model/Plugins/PluginInfo.cs +++ b/MediaBrowser.Model/DTO/PluginInfo.cs @@ -1,6 +1,6 @@ using System;
-namespace MediaBrowser.Model.Plugins
+namespace MediaBrowser.Model.DTO
{
/// <summary>
/// This is a serializable stub class that is used by the api to provide information about installed plugins.
diff --git a/MediaBrowser.Model/Entities/BaseItem.cs b/MediaBrowser.Model/Entities/BaseItem.cs index 322bac564c..d2745e460f 100644 --- a/MediaBrowser.Model/Entities/BaseItem.cs +++ b/MediaBrowser.Model/Entities/BaseItem.cs @@ -26,9 +26,9 @@ namespace MediaBrowser.Model.Entities public IEnumerable<string> BackdropImagePaths { get; set; }
public string OfficialRating { get; set; }
-
+
+ [IgnoreDataMember]
public string CustomRating { get; set; }
- public string CustomPin { get; set; }
public string Overview { get; set; }
public string Tagline { get; set; }
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 97a2233204..dd9034ed56 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -33,11 +33,11 @@ </PropertyGroup>
<ItemGroup>
<Compile Include="Configuration\UserConfiguration.cs" />
- <Compile Include="Entities\ApiBaseItem.cs" />
+ <Compile Include="DTO\ApiBaseItem.cs" />
<Compile Include="Entities\Audio.cs" />
<Compile Include="Entities\BaseEntity.cs" />
<Compile Include="Entities\BaseItem.cs" />
- <Compile Include="Entities\CategoryInfo.cs" />
+ <Compile Include="DTO\CategoryInfo.cs" />
<Compile Include="Entities\Folder.cs" />
<Compile Include="Entities\Genre.cs" />
<Compile Include="Entities\ImageType.cs" />
@@ -47,7 +47,7 @@ <Compile Include="Entities\Video.cs" />
<Compile Include="Entities\Year.cs" />
<Compile Include="Plugins\BasePluginConfiguration.cs" />
- <Compile Include="Plugins\PluginInfo.cs" />
+ <Compile Include="DTO\PluginInfo.cs" />
<Compile Include="Progress\TaskProgress.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Users\User.cs" />
|
