aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-07-12 13:09:35 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-07-12 13:09:35 -0400
commit4c9f77eead7148bb451de2a3f261bb3a61efe321 (patch)
treef1ec5b80698df2128478d79698bb3401edb33099 /MediaBrowser.Model/Entities
parentb50f78e5da6f3fdfc59e577ca61b88771da7d211 (diff)
Added some resolver improvements
Diffstat (limited to 'MediaBrowser.Model/Entities')
-rw-r--r--MediaBrowser.Model/Entities/BaseItem.cs3
-rw-r--r--MediaBrowser.Model/Entities/Person.cs15
2 files changed, 15 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Entities/BaseItem.cs b/MediaBrowser.Model/Entities/BaseItem.cs
index 2eaf375d9..6efdb4dee 100644
--- a/MediaBrowser.Model/Entities/BaseItem.cs
+++ b/MediaBrowser.Model/Entities/BaseItem.cs
@@ -38,7 +38,8 @@ namespace MediaBrowser.Model.Entities
public string Overview { get; set; }
public string Tagline { get; set; }
- public IEnumerable<Person> People { get; set; }
+ [JsonIgnore]
+ public IEnumerable<PersonInfo> People { get; set; }
public IEnumerable<string> Studios { get; set; }
diff --git a/MediaBrowser.Model/Entities/Person.cs b/MediaBrowser.Model/Entities/Person.cs
index 320491d02..521adb50c 100644
--- a/MediaBrowser.Model/Entities/Person.cs
+++ b/MediaBrowser.Model/Entities/Person.cs
@@ -6,10 +6,21 @@ using System.Threading.Tasks;
namespace MediaBrowser.Model.Entities
{
- public class Person
+ /// <summary>
+ /// This is the full Person object that can be retrieved with all of it's data.
+ /// </summary>
+ public class Person : BaseItem
+ {
+ public PersonType PersonType { get; set; }
+ }
+
+ /// <summary>
+ /// This is the small Person stub that is attached to BaseItems
+ /// </summary>
+ public class PersonInfo
{
public string Name { get; set; }
- public string Description { get; set; }
+ public string Overview { get; set; }
public PersonType PersonType { get; set; }
}