aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-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; }
}