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.

IServer.cs 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Text.Json.Serialization;
  3. namespace Shadowsocks.Models
  4. {
  5. public interface IServer : IEquatable<IServer>
  6. {
  7. /// <summary>
  8. /// Gets or sets the server address.
  9. /// </summary>
  10. [JsonPropertyName("server")]
  11. public string Host { get; set; }
  12. /// <summary>
  13. /// Gets or sets the server port.
  14. /// </summary>
  15. [JsonPropertyName("server_port")]
  16. public int Port { get; set; }
  17. /// <summary>
  18. /// Gets or sets the password for the server.
  19. /// </summary>
  20. public string Password { get; set; }
  21. /// <summary>
  22. /// Gets or sets the method used for the server.
  23. /// </summary>
  24. public string Method { get; set; }
  25. /// <summary>
  26. /// Gets or sets the plugin executable filename.
  27. /// </summary>
  28. [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
  29. public string? Plugin { get; set; }
  30. /// <summary>
  31. /// Gets or sets the plugin options passed as environment variables.
  32. /// </summary>
  33. [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
  34. public string? PluginOpts { get; set; }
  35. /// <summary>
  36. /// Gets or sets the server name.
  37. /// </summary>
  38. [JsonPropertyName("remarks")]
  39. public string Name { get; set; }
  40. }
  41. }