working on #328 (sigue sin ir via websockets, pero ahora los atributos se…

working on  #328 (sigue sin ir via websockets, pero ahora los atributos se actualizan por llamada REST si falla el websocket)
parent a87e4ab1
......@@ -41,9 +41,11 @@ public class StudentTalk implements Emitter.Listener {
String pic=msg.getString("pic");
String lang=msg.getString("lang");
String attributes=msg.getString("attributes");
JSONObject license= msg.getJSONObject("license");
Log.e("STUDENT","change...remove license in hard when lincense is not null:"+license.toString());
//JSONObject license=new JSONObject().put("isValid",true);
User user=PCBcontext.getPcbdb().getCurrentUser();
User updatedUser=new User(id, username, user.get_pwd_stu(), name, surname, id_active_scene, pic, gender, lang, attributes,
user.get_id_sup(), user.get_email_sup(), user.get_pwd_sup(), user.get_name_sup(), user.get_surname_sup(), user.get_url_img_sup(), user.get_gender_sup(),
......@@ -53,6 +55,7 @@ public class StudentTalk implements Emitter.Listener {
} catch (JSONException e) {
Log.e(this.getClass().getCanonicalName(), e.getClass().getCanonicalName() + "--" + e+" at "+args[0].toString());
PCBcontext.getNetService().synchronizeStudentAttributes(); //forzamos a actualizar los attrs. del estudiante mediante una llamada restful
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment