389,7 → 389,6 |
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()); |
670,12 → 669,4 |
} |
return motsCles; |
} |
|
public static String parserRetourAjoutVoteProtocole(JSONObject retour) { |
String id = ""; |
if (retour != null) { |
id = getValeurOuVide(retour, "id_vote"); |
} |
return id; |
} |
} |