Person.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 
  2. namespace MediaBrowser.Controller.Entities
  3. {
  4. /// <summary>
  5. /// This is the full Person object that can be retrieved with all of it's data.
  6. /// </summary>
  7. public class Person : BaseItem
  8. {
  9. /// <summary>
  10. /// Gets the user data key.
  11. /// </summary>
  12. /// <returns>System.String.</returns>
  13. public override string GetUserDataKey()
  14. {
  15. return "Person-" + Name;
  16. }
  17. }
  18. /// <summary>
  19. /// This is the small Person stub that is attached to BaseItems
  20. /// </summary>
  21. public class PersonInfo
  22. {
  23. /// <summary>
  24. /// Gets or sets the name.
  25. /// </summary>
  26. /// <value>The name.</value>
  27. public string Name { get; set; }
  28. /// <summary>
  29. /// Gets or sets the role.
  30. /// </summary>
  31. /// <value>The role.</value>
  32. public string Role { get; set; }
  33. /// <summary>
  34. /// Gets or sets the type.
  35. /// </summary>
  36. /// <value>The type.</value>
  37. public string Type { get; set; }
  38. /// <summary>
  39. /// Returns a <see cref="System.String" /> that represents this instance.
  40. /// </summary>
  41. /// <returns>A <see cref="System.String" /> that represents this instance.</returns>
  42. public override string ToString()
  43. {
  44. return Name;
  45. }
  46. }
  47. }