CurrentData.cs 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using FietsLibrary.JSONObjecten;
  2. using FietsLibrary;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace FietsClient
  9. {
  10. public class CurrentData
  11. {//faggsd
  12. private string userID;
  13. public bool isDoctor { set; get; }
  14. private List<Session> testResult;
  15. public CurrentData(string id)
  16. {
  17. this.userID = id;
  18. testResult = new List<Session>();
  19. }
  20. public void setSessionList(List<Session> tests)
  21. {
  22. testResult = tests;
  23. }
  24. public List<Session> GetSessions()
  25. {
  26. return testResult;
  27. }
  28. public String GetUserID()
  29. {
  30. return userID;
  31. }
  32. public void setSession(Session s)
  33. {
  34. testResult.Add(s);
  35. }
  36. public void SetMeasurment(Measurement measurment)
  37. {
  38. testResult.Last().AddMeasurement(measurment);
  39. }
  40. }
  41. }