Subversion Repositories eFlore/Applications.coel

Rev

Rev 1058 | Rev 1329 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1058 Rev 1097
Line 115... Line 115...
115
	
115
	
116
	private void traiterReponse(JSONValue reponseValeur, String type) {
116
	private void traiterReponse(JSONValue reponseValeur, String type) {
117
		Information info = new Information(type);
117
		Information info = new Information(type);
118
		// Si la requête est un succès, réception d'une chaîne
118
		// Si la requête est un succès, réception d'une chaîne
119
		if (reponseValeur.isString() != null) {
-
 
120
			info.setDonnee(reponseValeur.isString().stringValue());
119
		if (reponseValeur.isString() != null) {
121
			String idOuMessage = reponseValeur.isString().stringValue();
120
			String idOuMessage = reponseValeur.isString().stringValue();
122
			if (idOuMessage.matches("^[0-9]+$")) {
121
			if (idOuMessage.matches("^[0-9]+$")) {
123
				info.setDonnee(idOuMessage);
122
				info.setDonnee(idOuMessage);
124
			} else {
123
			} else {