Book.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using MediaBrowser.Model.Configuration;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Entities
  4. {
  5. public class Book : BaseItem, IHasTags, IHasPreferredMetadataLanguage
  6. {
  7. public override string MediaType
  8. {
  9. get
  10. {
  11. return Model.Entities.MediaType.Book;
  12. }
  13. }
  14. /// <summary>
  15. /// Gets or sets the tags.
  16. /// </summary>
  17. /// <value>The tags.</value>
  18. public List<string> Tags { get; set; }
  19. public string SeriesName { get; set; }
  20. public string PreferredMetadataLanguage { get; set; }
  21. /// <summary>
  22. /// Gets or sets the preferred metadata country code.
  23. /// </summary>
  24. /// <value>The preferred metadata country code.</value>
  25. public string PreferredMetadataCountryCode { get; set; }
  26. public Book()
  27. {
  28. Tags = new List<string>();
  29. }
  30. protected override bool GetBlockUnratedValue(UserConfiguration config)
  31. {
  32. return config.BlockUnratedBooks;
  33. }
  34. }
  35. }