36,7 → 36,12 |
|
public void getImagesParObservation(String observationId, ImagesParTaxonCallback callback) { |
// TODO implementer avec une methode realiste |
getImagesEfloreParTaxon("", callback); |
RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, serverUrl + "ImagesPourObservation/"+observationId); |
try { |
rb.sendRequest(null, callback); |
} catch (Exception e) { |
// TODO: handle exception |
} |
} |
|
private String assemblerChaineRequete(InformationsRecherche infos, int debut, int fin) { |
45,6 → 50,10 |
if (infos != null && infos.getTaxon() != null && !infos.getTaxon().trim().isEmpty()) { |
chaineRequete += "nom_taxon=" + infos.getTaxon() + chaineRequete; |
} |
|
if(infos != null && infos.getTriParDate() != null) { |
chaineRequete += "&tri=date_observation&ordre="+infos.getTriParDate().toString(); |
} |
|
return chaineRequete; |
} |