Line 5... |
Line 5... |
5 |
import org.tela_botanica.del.client.modeles.Observation;
|
5 |
import org.tela_botanica.del.client.modeles.Observation;
|
6 |
import org.tela_botanica.del.client.modeles.VoteDetermination;
|
6 |
import org.tela_botanica.del.client.modeles.VoteDetermination;
|
7 |
import org.tela_botanica.del.client.services.rest.async.DepublicationObservationCallBack;
|
7 |
import org.tela_botanica.del.client.services.rest.async.DepublicationObservationCallBack;
|
8 |
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
|
8 |
import org.tela_botanica.del.client.services.rest.async.ObservationsCallback;
|
9 |
import org.tela_botanica.del.client.services.rest.async.PHPCallback.ModeRequete;
|
9 |
import org.tela_botanica.del.client.services.rest.async.PHPCallback.ModeRequete;
|
- |
|
10 |
import org.tela_botanica.del.client.utils.Analytics;
|
10 |
import org.tela_botanica.del.client.services.RequestBuilderWithCredentials;
|
11 |
import org.tela_botanica.del.client.services.RequestBuilderWithCredentials;
|
Line 11... |
Line 12... |
11 |
|
12 |
|
Line 12... |
Line 13... |
12 |
public class ObservationServiceConcret implements ObservationService {
|
13 |
public class ObservationServiceConcret implements ObservationService {
|
Line 63... |
Line 64... |
63 |
try {
|
64 |
try {
|
64 |
rb.sendRequest(chainePost, callback);
|
65 |
rb.sendRequest(chainePost, callback);
|
65 |
} catch (Exception e) {
|
66 |
} catch (Exception e) {
|
66 |
//TODO: quoi faire si la requete est mal formée coté client avant d'être envoyée ?
|
67 |
//TODO: quoi faire si la requete est mal formée coté client avant d'être envoyée ?
|
67 |
}
|
68 |
}
|
- |
|
69 |
// stats
|
- |
|
70 |
Analytics.evenement("observation", "depublication", "{\"observation\": {\"id\": \"" + observation.getId() + "\", \"auteur\": \"" + observation.getAuteur() + "\"}}");
|
68 |
}
|
71 |
}
|
69 |
}
|
72 |
}
|