Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1209 → Rev 1210

/trunk/src/org/tela_botanica/client/modeles/UtilisateurAsyncDao.java
78,9 → 78,9
if (responseValue.isArray() != null) {
final JSONArray reponse = responseValue.isArray();
// Identifiant utilisateur ou identifiant de session si non identifié
String id = ((JSONString) reponse.get(2)).stringValue();
String id = ((JSONString) reponse.get(1)).stringValue();
// Drapeau levé si l'utilisateur est déjà identifié
boolean identifie = ((JSONBoolean) reponse.get(3)).booleanValue();
boolean identifie = ((JSONBoolean) reponse.get(2)).booleanValue();
// Nous réinitialisons l'utilisateur
utilisateur = new Utilisateur(id, identifie);
125,22 → 125,22
if (reponse.size() > 3) {
// Nom complet de l'utilisateur
if (reponse.get(3).isString() != null) {
utilisateur.setNomComplet(((JSONString) reponse.get(4)).stringValue());
utilisateur.setNomComplet(((JSONString) reponse.get(3)).stringValue());
}
// Prénom de l'utilisateur
if (reponse.get(4).isString() != null) {
utilisateur.setPrenom(((JSONString) reponse.get(5)).stringValue());
utilisateur.setPrenom(((JSONString) reponse.get(4)).stringValue());
}
// Nom de l'utilisateur
if (reponse.get(5).isString() != null) {
utilisateur.setNom(((JSONString) reponse.get(6)).stringValue());
utilisateur.setNom(((JSONString) reponse.get(5)).stringValue());
}
// Paramètres
if (reponse.get(6).isString() != null) {
Debug.log(((JSONString) reponse.get(7)).stringValue());
utilisateur.setParametre(((JSONString) reponse.get(7)).stringValue());
Debug.log(((JSONString) reponse.get(6)).stringValue());
utilisateur.setParametre(((JSONString) reponse.get(6)).stringValue());
}
}