[chronojump] deserialize person from server reads also image



commit f8ace7f4ba969de2768e9ddaeb6dcbb9b0858770
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu May 25 17:12:19 2017 +0200

    deserialize person from server reads also image

 src/json.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/json.cs b/src/json.cs
index 383fe2f..86c9e83 100644
--- a/src/json.cs
+++ b/src/json.cs
@@ -329,7 +329,8 @@ public class Json
                else if(responseFromServer == "[]")
                        LogB.Information(" Empty2 "); //when rfid is not on server
                else {
-                       //patheticPersonDeserialize("[[2, \"(playername)\", 82.0, \"253,20,150,13\"]]");
+                       //patheticPersonDeserialize("[[2, \"(playername)\", 82.0, \"253,20,150,13\", \"\"]]");
+                       //patheticPersonDeserialize("[[2, \"(playername)\", 82.0, \"253,20,150,13\", 
\"jugadors/player.jpg\"]]");
                        person = patheticPersonDeserialize(responseFromServer);
                }
 
@@ -337,6 +338,7 @@ public class Json
 
        }
        public double LastPersonByRFIDWeight = 0;
+       public string LastPersonByRFIDImageURL = "";
        private Person patheticPersonDeserialize(string str)
        {
                LogB.Information("str:|" + str + "|");
@@ -345,13 +347,13 @@ public class Json
                LogB.Information("id:|" + id + "|");
 
                str = str.Substring(str.IndexOf('"') +1);
-               //LogB.Information("str:|" + str + "|");
+               LogB.Information("str:|" + str + "|");
                
                string player = str.Substring(0, str.IndexOf('"'));
                LogB.Information("player:|" + player + "|");
                
                str = str.Substring(str.IndexOf(',') +2);
-               //LogB.Information("str:|" + str + "|");
+               LogB.Information("str:|" + str + "|");
 
                string weight = str.Substring(0, str.IndexOf(','));
                LogB.Information("weight:|" + weight + "|");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]