BaseItem.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Serialization;
  4. namespace MediaBrowser.Model.Entities
  5. {
  6. public abstract class BaseItem : BaseEntity
  7. {
  8. public string SortName { get; set; }
  9. public DateTime DateCreated { get; set; }
  10. public DateTime DateModified { get; set; }
  11. /// <summary>
  12. /// When the item first debuted. For movies this could be premiere date, episodes would be first aired
  13. /// </summary>
  14. public DateTime? PremiereDate { get; set; }
  15. public string Path { get; set; }
  16. [IgnoreDataMember]
  17. public Folder Parent { get; set; }
  18. public string LogoImagePath { get; set; }
  19. public string ArtImagePath { get; set; }
  20. public string ThumbnailImagePath { get; set; }
  21. public string BannerImagePath { get; set; }
  22. public IEnumerable<string> BackdropImagePaths { get; set; }
  23. public string OfficialRating { get; set; }
  24. public string CustomRating { get; set; }
  25. public string CustomPin { get; set; }
  26. public string Overview { get; set; }
  27. public string Tagline { get; set; }
  28. [IgnoreDataMember]
  29. public IEnumerable<PersonInfo> People { get; set; }
  30. public IEnumerable<string> Studios { get; set; }
  31. public IEnumerable<string> Genres { get; set; }
  32. public string DisplayMediaType { get; set; }
  33. public float? UserRating { get; set; }
  34. public int? RunTimeInMilliseconds { get; set; }
  35. public string AspectRatio { get; set; }
  36. public int? ProductionYear { get; set; }
  37. /// <summary>
  38. /// If the item is part of a series, this is it's number in the series.
  39. /// This could be episode number, album track number, etc.
  40. /// </summary>
  41. public int? IndexNumber { get; set; }
  42. public IEnumerable<Video> LocalTrailers { get; set; }
  43. public string TrailerUrl { get; set; }
  44. public override string ToString()
  45. {
  46. return Name;
  47. }
  48. }
  49. }