CloudServerCollection.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.CloudServerData.Model
  6. {
  7. [Serializable]
  8. public class CloudServerCollection
  9. {
  10. public CloudServerCollection()
  11. {
  12. }
  13. public CloudServerCollection(string serverName)
  14. {
  15. this.CloudServerName = serverName;
  16. }
  17. long _ID = 0;
  18. public long ID
  19. {
  20. get { return _ID; }
  21. set { _ID = value; }
  22. }
  23. string _DataBaseServerIP = "";
  24. /// <summary>
  25. /// 数据库ip地址
  26. /// </summary>
  27. public string DataBaseServerIP
  28. {
  29. get { return _DataBaseServerIP; }
  30. set { _DataBaseServerIP = value; }
  31. }
  32. int _SeverPort = 0;
  33. /// <summary>
  34. /// 服务器端口号
  35. /// </summary>
  36. public int SeverPort
  37. {
  38. get { return _SeverPort; }
  39. set { _SeverPort = value; }
  40. }
  41. int _DataBasePort = 0;
  42. /// <summary>
  43. /// 端口
  44. /// </summary>
  45. public int DataBasePort
  46. {
  47. get { return _DataBasePort; }
  48. set { _DataBasePort = value; }
  49. }
  50. string _DataBaseUser;
  51. /// <summary>
  52. /// 用户
  53. /// </summary>
  54. public string DataBaseUser
  55. {
  56. get { return _DataBaseUser; }
  57. set { _DataBaseUser = value; }
  58. }
  59. string _DataBasePass;
  60. /// <summary>
  61. /// 密码
  62. /// </summary>
  63. public string DataBasePass
  64. {
  65. get { return _DataBasePass; }
  66. set { _DataBasePass = value; }
  67. }
  68. string _DomainName = "";
  69. public string DomainName
  70. {
  71. get { return _DomainName; }
  72. set { _DomainName = value; }
  73. }
  74. string _CloudServerName = "";
  75. public string CloudServerName
  76. {
  77. get { return _CloudServerName; }
  78. set { _CloudServerName = value; }
  79. }
  80. string _Remarks = "";
  81. /// <summary>
  82. /// 备注
  83. /// </summary>
  84. public string Remarks
  85. {
  86. get { return _Remarks; }
  87. set { _Remarks = value; }
  88. }
  89. long _CreateTime = 0;
  90. public long CreateTime
  91. {
  92. get { return _CreateTime; }
  93. set { _CreateTime = value; }
  94. }
  95. string _FrpConfig = "";
  96. /// <summary>
  97. /// FRP服务器端配置信息
  98. /// </summary>
  99. public string FrpConfig
  100. {
  101. get { return _FrpConfig; }
  102. set { _FrpConfig = value; }
  103. }
  104. int _Multiple = 1;
  105. /// <summary>
  106. /// 流量倍数
  107. /// </summary>
  108. public int Multiple
  109. {
  110. get { return _Multiple; }
  111. set { _Multiple = value; }
  112. }
  113. public override string ToString()
  114. {
  115. return this.CloudServerName;
  116. }
  117. }
  118. }