CurrentData.cs 906 B

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