UserConfiguration.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using ProtoBuf;
  2. namespace MediaBrowser.Model.Configuration
  3. {
  4. /// <summary>
  5. /// Class UserConfiguration
  6. /// </summary>
  7. [ProtoContract]
  8. public class UserConfiguration
  9. {
  10. /// <summary>
  11. /// Gets or sets the max parental rating.
  12. /// </summary>
  13. /// <value>The max parental rating.</value>
  14. [ProtoMember(1)]
  15. public int? MaxParentalRating { get; set; }
  16. /// <summary>
  17. /// Gets or sets a value indicating whether [use custom library].
  18. /// </summary>
  19. /// <value><c>true</c> if [use custom library]; otherwise, <c>false</c>.</value>
  20. [ProtoMember(2)]
  21. public bool UseCustomLibrary { get; set; }
  22. /// <summary>
  23. /// Gets or sets a value indicating whether this instance is administrator.
  24. /// </summary>
  25. /// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value>
  26. [ProtoMember(3)]
  27. public bool IsAdministrator { get; set; }
  28. /// <summary>
  29. /// Gets or sets the audio language preference.
  30. /// </summary>
  31. /// <value>The audio language preference.</value>
  32. [ProtoMember(4)]
  33. public string AudioLanguagePreference { get; set; }
  34. /// <summary>
  35. /// Gets or sets the subtitle language preference.
  36. /// </summary>
  37. /// <value>The subtitle language preference.</value>
  38. [ProtoMember(5)]
  39. public string SubtitleLanguagePreference { get; set; }
  40. /// <summary>
  41. /// Gets or sets a value indicating whether [use forced subtitles only].
  42. /// </summary>
  43. /// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
  44. [ProtoMember(6)]
  45. public bool UseForcedSubtitlesOnly { get; set; }
  46. /// <summary>
  47. /// Initializes a new instance of the <see cref="UserConfiguration" /> class.
  48. /// </summary>
  49. public UserConfiguration()
  50. {
  51. IsAdministrator = true;
  52. }
  53. }
  54. }