CurrentData.cs 863 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 void setSession(Session s)
  27. {
  28. testResult.Add(s);
  29. }
  30. public void SetMeasurment(Measurement measurment)
  31. {
  32. testResult.Last().AddMeasurement(measurment);
  33. }
  34. }
  35. }