CurrentData.cs 719 B

12345678910111213141516171819202122232425262728293031323334353637
  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. 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. }
  31. }