BaseApplicationConfiguration.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using MediaBrowser.Model.Updates;
  2. namespace MediaBrowser.Model.Configuration
  3. {
  4. /// <summary>
  5. /// Serves as a common base class for the Server and UI application Configurations
  6. /// ProtoInclude tells Protobuf about subclasses,
  7. /// The number 50 can be any number, so long as it doesn't clash with any of the ProtoMember numbers either here or in subclasses.
  8. /// </summary>
  9. public class BaseApplicationConfiguration
  10. {
  11. // TODO: @bond Remove?
  12. /// <summary>
  13. /// Gets or sets a value indicating whether [enable debug level logging].
  14. /// </summary>
  15. /// <value><c>true</c> if [enable debug level logging]; otherwise, <c>false</c>.</value>
  16. public bool EnableDebugLevelLogging { get; set; }
  17. /// <summary>
  18. /// Enable automatically and silently updating of the application
  19. /// </summary>
  20. /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
  21. public bool EnableAutoUpdate { get; set; }
  22. // TODO: @bond Remove?
  23. /// <summary>
  24. /// The number of days we should retain log files
  25. /// </summary>
  26. /// <value>The log file retention days.</value>
  27. public int LogFileRetentionDays { get; set; }
  28. /// <summary>
  29. /// Gets or sets a value indicating whether this instance is first run.
  30. /// </summary>
  31. /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value>
  32. public bool IsStartupWizardCompleted { get; set; }
  33. /// <summary>
  34. /// Gets or sets the cache path.
  35. /// </summary>
  36. /// <value>The cache path.</value>
  37. public string CachePath { get; set; }
  38. /// <summary>
  39. /// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
  40. /// </summary>
  41. public BaseApplicationConfiguration()
  42. {
  43. EnableAutoUpdate = true;
  44. LogFileRetentionDays = 3;
  45. }
  46. }
  47. }