From 4c9f77eead7148bb451de2a3f261bb3a61efe321 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Thu, 12 Jul 2012 13:09:35 -0400 Subject: Added some resolver improvements --- MediaBrowser.Model/Entities/BaseItem.cs | 3 ++- MediaBrowser.Model/Entities/Person.cs | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Model') 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 People { get; set; } + [JsonIgnore] + public IEnumerable People { get; set; } public IEnumerable 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 + /// + /// This is the full Person object that can be retrieved with all of it's data. + /// + public class Person : BaseItem + { + public PersonType PersonType { get; set; } + } + + /// + /// This is the small Person stub that is attached to BaseItems + /// + public class PersonInfo { public string Name { get; set; } - public string Description { get; set; } + public string Overview { get; set; } public PersonType PersonType { get; set; } } -- cgit v1.2.3