Package donnees

Examples of donnees.Exercice


    this(session2.getUuid());
    session = session2;
  }

  public Exercice getLastExercice(){
    Exercice lastExercice = Deserialiseur.deSerialiseExercice(ClientHTTPInfoExercices.connection(session.getUuid(), "last"));
    return lastExercice;
  }
View Full Code Here


    panel_6.add(panel_8, BorderLayout.CENTER);
    panel_8.setLayout(new MigLayout("", "[480.00,grow]", "[][][]"));
   
    Font texte22 = FontesLoader.getFonteTexte((float)22, this);
   
    Exercice lastExercice = controller.getLastExercice();
    if( lastExercice != null ){
      SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

      JLabel lblLeVous = new JLabel("Le " + sdf.format(lastExercice.getDate()) + ", vous avez effectué :");
      lblLeVous.setFont(texte22);
      panel_8.add(lblLeVous, "cell 0 0,alignx center");

      JLabel lblNewLabel_2 = new JLabel(lastExercice.getRepetitions() +" "+ lastExercice.getType() + " en " +
                (int) ((lastExercice.getDuree())/60)+ " minutes et " + (int) ((lastExercice.getDuree())%60)+ " secondes");
      lblNewLabel_2.setFont(texte22);
      panel_8.add(lblNewLabel_2, "cell 0 1,alignx center");

      JLabel lblBravoVous = new JLabel("Bravo ! Vous avez gagné "+ lastExercice.getCoins() +" SportCoins");
      lblBravoVous.setFont(texte22);
      panel_8.add(lblBravoVous, "cell 0 2,alignx center");
    }
    else{
      JLabel lblPasEncore = new JLabel("Vous n'avez encore fait aucun exercice");
View Full Code Here

   
    long totalSecondes = Long.parseLong(sTotalSecondes);
   
    int SportCoins = CalculateurSportCoins.getSportCoins(type, duree, repetitions, totalSecondes);
   
    exercice = new Exercice(new Date(), type, duree, repetitions, SportCoins);
   
    String clecontrole = GenerateurCleControle.getCleControleur(session, SportCoins, repetitions, duree);
   
    ClientHTTPNouvelExercice.addExercice(session.getUuid(), exercice, clecontrole);
   
View Full Code Here

TOP

Related Classes of donnees.Exercice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.