Esempio n. 1
0
        private void HandleBikeData(string data)
        {
            dynamic receivedData = null;

            try
            {
                receivedData = JsonConvert.DeserializeObject(data);
            } catch (Exception e)
            {
                Console.WriteLine(e);
                return;
            }
            string  bikeData    = receivedData.data;
            dynamic patientData = JsonConvert.DeserializeObject(bikeData);

            int    power    = patientData.data.power;
            double distance = patientData.data.distance;
            double energy   = patientData.data.energy;
            double rpm      = patientData.data.rpm;
            string time     = patientData.data.time;

            PointOfTime pointOfTime = new PointOfTime(
                power, distance, energy, rpm, time);;

            string temp = patientData.bikeID;

            DocGUI.SetBikeData(temp, pointOfTime);
        }
Esempio n. 2
0
 public void removePointOfTime(PointOfTime point)
 {
     timeList.Remove(point);
 }
Esempio n. 3
0
 public void addPointOfTime(PointOfTime point)
 {
     timeList.Add(point);
 }