Commit ae8b78ecbfe219d833f15edcecaf0a3b0191e7e0

Authored by JLo'w
1 parent 229615b7

PremiereActivite/app/src/main/java/com/example/app_10p5/MainActivite.java
@@ -388,6 +388,7 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr @@ -388,6 +388,7 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr
388 if(output.get("status").toString().equals("ok")){ 388 if(output.get("status").toString().equals("ok")){
389 switch (mState){ 389 switch (mState){
390 case STATE_COMMANDE: 390 case STATE_COMMANDE:
  391 + Snackbar.make(findViewById(R.id.coordinator), "Client débité de " + output.get("montant") + "€. " + output.get("soldeAncien") + "€ → " + output.getString("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show();
391 break; 392 break;
392 case STATE_CONNEXION: 393 case STATE_CONNEXION:
393 mToken = output.get("jeton").toString(); 394 mToken = output.get("jeton").toString();
@@ -401,8 +402,10 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr @@ -401,8 +402,10 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr
401 Snackbar.make(findViewById(R.id.coordinator), "Client créé avec un solde de " + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show(); 402 Snackbar.make(findViewById(R.id.coordinator), "Client créé avec un solde de " + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show();
402 break; 403 break;
403 case STATE_RECHARGEMENT: 404 case STATE_RECHARGEMENT:
  405 + Snackbar.make(findViewById(R.id.coordinator), "Client rechargé: " + output.get("soldeAncien") + "€ →" + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show();
404 break; 406 break;
405 case STATE_VIDANGE: 407 case STATE_VIDANGE:
  408 + Snackbar.make(findViewById(R.id.coordinator), "Client vidé: " + output.get("soldeAncien") + "€ → 0€", Snackbar.LENGTH_INDEFINITE).show();
406 break; 409 break;
407 case STATE_RIEN: 410 case STATE_RIEN:
408 default: 411 default: