Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1470 → Rev 1471

/trunk/src/org/tela_botanica/del/client/utils/UtilitairesServiceResultat.java
389,6 → 389,7
JSONObject voteEnCours = votesPourCeProtocoles.get(itVotes.next()).isObject();
VoteProtocole vd = new VoteProtocole();
vd.setContributeur(voteEnCours.get("auteur.id").isString().stringValue());
vd.setId(voteEnCours.get("vote.id").isString().stringValue());
// TODO récupérer la date du vote et la parser
vd.setDate(parserDateObservation(getValeurOuVide(voteEnCours, "date")));
int valeurVote = Integer.parseInt(voteEnCours.get("vote").isString().stringValue());
669,4 → 670,12
}
return motsCles;
}
 
public static String parserRetourAjoutVoteProtocole(JSONObject retour) {
String id = "";
if (retour != null) {
id = getValeurOuVide(retour, "id_vote");
}
return id;
}
}