ServerConfig.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.WanYuKeFuData.Model
  6. {
  7. /// <summary>
  8. /// 服务器配置
  9. /// </summary>
  10. public class ServerConfig : BaseConfig
  11. {
  12. public ServerConfig() {
  13. }
  14. int bakHH = 21;
  15. /// <summary>
  16. /// 备份开始 小时数
  17. /// </summary>
  18. public int BakHH
  19. {
  20. get { return bakHH; }
  21. set { bakHH = value; }
  22. }
  23. int bakMM = 0;
  24. /// <summary>
  25. /// 备份开始 分钟数
  26. /// </summary>
  27. public int BakMM
  28. {
  29. get { return bakMM; }
  30. set { bakMM = value; }
  31. }
  32. bool enableAutoBackup = false;
  33. /// <summary>
  34. /// 是否启用自动备份
  35. /// </summary>
  36. public bool EnableAutoBackup
  37. {
  38. get { return enableAutoBackup; }
  39. set { enableAutoBackup = value; }
  40. }
  41. string backupFilePath = "";
  42. /// <summary>
  43. /// 备份文件保存路径
  44. /// </summary>
  45. public string BackupFilePath
  46. {
  47. get { return backupFilePath; }
  48. set { backupFilePath = value; }
  49. }
  50. private bool _NetworkTrafficStatistics = false;
  51. /// <summary>
  52. /// 是否开启统量统计
  53. /// </summary>
  54. public bool NetworkTrafficStatistics
  55. {
  56. get { return _NetworkTrafficStatistics; }
  57. set { _NetworkTrafficStatistics = value; }
  58. }
  59. }
  60. }