BaseItem.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Newtonsoft.Json;
  7. namespace MediaBrowser.Model.Entities
  8. {
  9. public abstract class BaseItem
  10. {
  11. public string Name { get; set; }
  12. public string SortName { get; set; }
  13. public Guid Id { get; set; }
  14. public DateTime DateCreated { get; set; }
  15. public DateTime DateModified { get; set; }
  16. public string Path { get; set; }
  17. [JsonIgnore]
  18. public Folder Parent { get; set; }
  19. public string PrimaryImagePath { get; set; }
  20. public string LogoImagePath { get; set; }
  21. public string ArtImagePath { get; set; }
  22. public string ThumbnailImagePath { get; set; }
  23. public string BannerImagePath { get; set; }
  24. public IEnumerable<string> BackdropImagePaths { get; set; }
  25. public string OfficialRating { get; set; }
  26. public string CustomRating { get; set; }
  27. public string CustomPin { get; set; }
  28. public string Overview { get; set; }
  29. public string Tagline { get; set; }
  30. [JsonIgnore]
  31. public IEnumerable<PersonInfo> People { get; set; }
  32. public IEnumerable<string> Studios { get; set; }
  33. public IEnumerable<string> Genres { get; set; }
  34. public string DisplayMediaType { get; set; }
  35. public float? UserRating { get; set; }
  36. public TimeSpan? RunTime { get; set; }
  37. public string AspectRatio { get; set; }
  38. public int? ProductionYear { get; set; }
  39. public IEnumerable<Video> LocalTrailers { get; set; }
  40. public string TrailerUrl { get; set; }
  41. public override string ToString()
  42. {
  43. return Name;
  44. }
  45. }
  46. }