BaseApplicationConfiguration.cs 1.9 KB

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