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.

UserObject.cs 509 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Shadowsocks.Interop.V2Ray.Protocols.VMess
  3. {
  4. /// <summary>
  5. /// The user object for VMess AEAD.
  6. /// </summary>
  7. public class UserObject
  8. {
  9. public string Id { get; set; }
  10. public string? Email { get; set; }
  11. public int Level { get; set; }
  12. public UserObject(string id = "")
  13. {
  14. Id = id;
  15. }
  16. public static UserObject Default => new()
  17. {
  18. Id = Guid.NewGuid().ToString(),
  19. };
  20. }
  21. }