BaseItem.cs 2.2 KB

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