BaseApplicationConfiguration.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. /// <summary>
  11. /// The number of days we should retain log files
  12. /// </summary>
  13. /// <value>The log file retention days.</value>
  14. public int LogFileRetentionDays { get; set; }
  15. /// <summary>
  16. /// Gets or sets a value indicating whether this instance is first run.
  17. /// </summary>
  18. /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value>
  19. public bool IsStartupWizardCompleted { get; set; }
  20. /// <summary>
  21. /// Gets or sets the cache path.
  22. /// </summary>
  23. /// <value>The cache path.</value>
  24. public string CachePath { get; set; }
  25. /// <summary>
  26. /// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
  27. /// </summary>
  28. public BaseApplicationConfiguration()
  29. {
  30. LogFileRetentionDays = 3;
  31. }
  32. }
  33. }