Issue #125 fixed

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