BaseApplicationConfiguration.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /// <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. /// <summary>
  22. /// The number of days we should retain log files
  23. /// </summary>
  24. /// <value>The log file retention days.</value>
  25. public int LogFileRetentionDays { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether [run at startup].
  28. /// </summary>
  29. /// <value><c>true</c> if [run at startup]; otherwise, <c>false</c>.</value>
  30. public bool RunAtStartup { get; set; }
  31. /// <summary>
  32. /// Gets or sets a value indicating whether this instance is first run.
  33. /// </summary>
  34. /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value>
  35. public bool IsStartupWizardCompleted { get; set; }
  36. /// <summary>
  37. /// Gets or sets the cache path.
  38. /// </summary>
  39. /// <value>The cache path.</value>
  40. public string CachePath { get; set; }
  41. /// <summary>
  42. /// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
  43. /// </summary>
  44. public BaseApplicationConfiguration()
  45. {
  46. EnableAutoUpdate = true;
  47. LogFileRetentionDays = 3;
  48. }
  49. }
  50. }