[chronojump] uploadEncoderData adds laterality and fixes exerciseId
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] uploadEncoderData adds laterality and fixes exerciseId
- Date: Thu, 29 Jun 2017 13:08:19 +0000 (UTC)
commit d8c8055360af5c4de8e7eb158493b37d53075d76
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jun 29 15:07:56 2017 +0200
uploadEncoderData adds laterality and fixes exerciseId
src/gui/encoder.cs | 4 ++--
src/json.cs | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index e171108..4697ef2 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -6051,8 +6051,8 @@ public partial class ChronoJumpWindow
bool success = js.UploadEncoderData(
currentPerson.UniqueID,
configChronojump.CompujumpStationID,
-
//UtilGtk.ComboGetActive(combo_encoder_exercise_capture),
- 1, //exerciseID
+ lastEncoderSQLSignal.exerciseID,
+
lastEncoderSQLSignal.LateralityToEnglish(),
Util.ConvertToPoint(findMass(Constants.MassType.DISPLACED)), //this is only for gravitatory
uo);
LogB.Information(js.ResultMessage);
diff --git a/src/json.cs b/src/json.cs
index d08394d..2c46212 100644
--- a/src/json.cs
+++ b/src/json.cs
@@ -624,7 +624,7 @@ public class Json
return UploadEncoderData(1, 1, "40.2", "lateral", "8100.5", 8);
}
*/
- public bool UploadEncoderData(int personId, int stationId, int exerciseId, string resistance,
UploadEncoderDataObject uo)
+ public bool UploadEncoderData(int personId, int stationId, int exerciseId, string laterality, string
resistance, UploadEncoderDataObject uo)
{
// Create a request using a URL that can receive a post.
WebRequest request = WebRequest.Create (serverUrl + "/uploadEncoderData");
@@ -643,6 +643,7 @@ public class Json
json.Add("stationId", stationId);
//json.Add("exerciseName", exerciseName);
json.Add("exerciseId", exerciseId);
+ json.Add("laterality", laterality);
json.Add("resistance", resistance);
json.Add("repetitions", uo.repetitions);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]