using System.Runtime.Serialization; using MediaBrowser.Model.Dto; using System; using System.Collections.Generic; namespace MediaBrowser.Controller.Entities { /// /// This is the full Person object that can be retrieved with all of it's data. /// public class Person : BaseItem, IItemByName { public Person() { UserItemCounts = new Dictionary(); } [IgnoreDataMember] public Dictionary UserItemCounts { get; set; } /// /// Gets the user data key. /// /// System.String. public override string GetUserDataKey() { return "Person-" + Name; } } /// /// This is the small Person stub that is attached to BaseItems /// public class PersonInfo { /// /// Gets or sets the name. /// /// The name. public string Name { get; set; } /// /// Gets or sets the role. /// /// The role. public string Role { get; set; } /// /// Gets or sets the type. /// /// The type. public string Type { get; set; } /// /// Returns a that represents this instance. /// /// A that represents this instance. public override string ToString() { return Name; } } }