Subversion Repositories eFlore/Applications.del

Rev

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

Rev 768 Rev 845
Line 1... Line 1...
1
package org.tela_botanica.del.client.services.rest;
1
package org.tela_botanica.del.client.services.rest;
Line 2... Line 2...
2
 
2
 
3
import org.tela_botanica.del.client.config.Config;
3
import org.tela_botanica.del.client.config.Config;
4
import org.tela_botanica.del.client.modeles.InformationsRecherche;
-
 
5
import org.tela_botanica.del.client.modeles.ObservationServiceResultat;
4
import org.tela_botanica.del.client.modeles.InformationsRecherche;
Line 6... Line 5...
6
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
5
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
Line 7... Line 6...
7
 
6
 
Line 35... Line 34...
35
		String chaineRequete = "?navigation.depart=" + debut + "&navigation.limite=" + (fin - debut);
34
		String chaineRequete = "?navigation.depart=" + debut + "&navigation.limite=" + (fin - debut);
36
		chaineRequete+= infos.versChaineRequete();
35
		chaineRequete+= infos.versChaineRequete();
Line 37... Line 36...
37
 
36
 
38
		return chaineRequete;
37
		return chaineRequete;
-
 
38
	}
-
 
39
 
-
 
40
	@Override
-
 
41
	public void getObservation(String idObservation,
-
 
42
			ObservationsCallback callback) {
-
 
43
		RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, baseUrl + "observations/"+idObservation);
-
 
44
		try {
-
 
45
			rb.sendRequest(null, callback);
-
 
46
		} catch (Exception e) {
-
 
47
			// TODO: handle exception
-
 
48
		}
39
	}
49
	}