You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ServerObject.cs 1.1 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Text.Json.Serialization;
  2. namespace Shadowsocks.Interop.V2Ray.Protocols.Shadowsocks
  3. {
  4. public class ServerObject
  5. {
  6. public string Email { get; set; }
  7. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  8. public string Address { get; set; }
  9. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  10. public int Port { get; set; }
  11. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  12. public string Method { get; set; }
  13. [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
  14. public string Password { get; set; }
  15. public int Level { get; set; }
  16. public ServerObject()
  17. {
  18. Email = "";
  19. Address = "";
  20. Port = 8388;
  21. Method = "chacha20-ietf-poly1305";
  22. Password = "";
  23. Level = 0;
  24. }
  25. public ServerObject(string address, int port, string method, string password)
  26. {
  27. Email = "";
  28. Address = address;
  29. Port = port;
  30. Method = method;
  31. Password = password;
  32. Level = 0;
  33. }
  34. }
  35. }