BaseItem.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. public IEnumerable<PersonInfo> People { get; set; }
  29. public IEnumerable<string> Studios { get; set; }
  30. public IEnumerable<string> Genres { get; set; }
  31. public string DisplayMediaType { get; set; }
  32. public float? UserRating { get; set; }
  33. public int? RunTimeInMilliseconds { get; set; }
  34. public string AspectRatio { get; set; }
  35. public int? ProductionYear { get; set; }
  36. /// <summary>
  37. /// If the item is part of a series, this is it's number in the series.
  38. /// This could be episode number, album track number, etc.
  39. /// </summary>
  40. public int? IndexNumber { get; set; }
  41. public IEnumerable<Video> LocalTrailers { get; set; }
  42. public string TrailerUrl { get; set; }
  43. public override string ToString()
  44. {
  45. return Name;
  46. }
  47. }
  48. }