Statistics.cs 645 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace YJMPD_UWP.Model.Object
  7. {
  8. public class Statistics
  9. {
  10. public Statistics()
  11. {
  12. Points = new List<double>();
  13. Distance = 0;
  14. Matches = 0;
  15. Leader = 0;
  16. }
  17. public List<double> Points { get; set; }
  18. public double Distance { get; set; }
  19. public int Matches { get; set; }
  20. public int Leader { get; set; }
  21. public void AddPoints(double points)
  22. {
  23. Points.Add(points);
  24. }
  25. }
  26. }