BaseItem.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. public IEnumerable<Video> LocalTrailers { get; set; }
  46. public string TrailerUrl { get; set; }
  47. public override string ToString()
  48. {
  49. return Name;
  50. }
  51. }
  52. }