User.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Server.JSONObjecten;
  7. namespace Server
  8. {
  9. class User
  10. {
  11. public string id { get; private set; }
  12. public string password { get; private set; }
  13. public List<Session> tests { get; private set; }
  14. public int age { get; private set; }
  15. public bool gender { get; private set; }
  16. public int weight { get; private set; }
  17. public bool isDoctor { get; private set; }
  18. //Create Patient
  19. public User(string id, string password, int age, bool gender, int weight)
  20. {
  21. this.id = id;
  22. this.password = password;
  23. this.tests = new List<Session>();
  24. this.age = age;
  25. this.gender = gender;
  26. this.weight = weight;
  27. this.isDoctor = false;
  28. }
  29. //Create Patient or Doctor
  30. public User(string id, string password, int age, bool gender, int weight, bool isDoctor)
  31. {
  32. this.id = id;
  33. this.password = password;
  34. this.tests = new List<Session>();
  35. this.age = age;
  36. this.gender = gender;
  37. this.weight = weight;
  38. this.isDoctor = isDoctor;
  39. }
  40. }
  41. }