Issue #125 fixed

parent 416a0b98
...@@ -37,7 +37,6 @@ public class User { ...@@ -37,7 +37,6 @@ public class User {
static String TTS_ENGINE = "tts engine"; static String TTS_ENGINE = "tts engine";
static String TTS_VOICE = "tts voice"; static String TTS_VOICE = "tts voice";
static String DELIVERY = "delivery"; static String DELIVERY = "delivery";
static String SUPERVISORS = "supervisors";
} }
public final static class JSON_STUDENT_INPUT_FEEDBACK { public final static class JSON_STUDENT_INPUT_FEEDBACK {
public static String VIBRATION="vibration"; public static String VIBRATION="vibration";
...@@ -45,6 +44,7 @@ public class User { ...@@ -45,6 +44,7 @@ public class User {
public static String READ="read"; public static String READ="read";
public static String HIGHLIGHT="highlight"; public static String HIGHLIGHT="highlight";
} }
private String supervisors;
private Img img_stu; private Img img_stu;
private String nickname_stu, pwd_stu, name_stu, surname_stu, gender_stu, lang_stu; private String nickname_stu, pwd_stu, name_stu, surname_stu, gender_stu, lang_stu;
private JSONObject attributes_stu; private JSONObject attributes_stu;
...@@ -268,22 +268,11 @@ public class User { ...@@ -268,22 +268,11 @@ public class User {
} }
public String get_Supervisors(){ public String get_Supervisors(){
String supervisors = null; return this.supervisors;
try{
supervisors = this.attributes_stu.getString(JSON_STUDENT_ATTTRS.SUPERVISORS);
} catch (JSONException e) {
e.printStackTrace();
}
return supervisors;
} }
public void set_Supervisors(String newSup){ public void set_Supervisors(String newSup) {
try { this.supervisors = newSup;
this.attributes_stu.remove(JSON_STUDENT_ATTTRS.SUPERVISORS);
this.attributes_stu.put(JSON_STUDENT_ATTTRS.SUPERVISORS,newSup);
} catch (JSONException e) {
e.printStackTrace();
}
} }
/** /**
* *
......
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