CentralLogin.cs 610 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Newtonsoft.Json;
  7. namespace WinUI
  8. {
  9. class CentralLogin
  10. {
  11. public CentralLogin(string email, string password, bool isNew)
  12. {
  13. Login = email;
  14. Password = password;
  15. IsNew = isNew;
  16. }
  17. [JsonProperty("login")]
  18. public string Login { get; set; }
  19. [JsonProperty("password")]
  20. public string Password { get; set; }
  21. [JsonProperty("register")]
  22. public bool IsNew { get; set; }
  23. }
  24. }