CurrentData.cs 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. private List<Session> testResult;
  13. public CurrentData(string id)
  14. {
  15. this.userID = id;
  16. testResult = new List<Session>();
  17. }
  18. public void setSessionList(List<Session> tests)
  19. {
  20. testResult = tests;
  21. }
  22. public List<Session> GetSessions()
  23. {
  24. return testResult;
  25. }
  26. public String GetUserID()
  27. {
  28. return userID;
  29. }
  30. public void setSession(Session s)
  31. {
  32. testResult.Add(s);
  33. }
  34. public void SetMeasurment(Measurement measurment)
  35. {
  36. testResult.Last().AddMeasurement(measurment);
  37. }
  38. }
  39. }