184,8 → 184,18 |
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() { |
@Override |
public void surReponse(JSONValue responseValue) { |
// Si la requête a impliquées des valeurs autogénérées, l'objet modifié est retourné |
JSONObject obj; |
if ((obj = responseValue.isObject()) != null) { |
if (obj.get("structures").isObject() != null) { |
Structure structure = new Structure(obj.get("structures").isObject()); |
Information info = new Information("modif_structure"); |
info.setDonnee(structure); |
vueARafraichir.rafraichir(info); |
} |
} |
// Si la requête est un succès, reception d'une chaine |
if (responseValue.isString() != null) { |
else if (responseValue.isString() != null) { |
Information info = new Information("modif_structure"); |
info.setMessage(responseValue.isString().stringValue()); |
vueARafraichir.rafraichir(info); |
293,4 → 303,4 |
} |
return postDonnees; |
} |
} |
} |