Package com.wot.shared

Examples of com.wot.shared.CommunityAccount


      dataTable.addColumn(ColumnType.NUMBER, nameStat);
    }
   
    //dataTable.addRows(years.length);
    //
    CommunityAccount commAccount = listAccount.get(0);
    //String  tabDates[] = new String [100] ;
    //init tabDates
    int i = 0;
//    for(String date :commAccount.listDates) {
//      tabDates[i] = date;
View Full Code Here


          List<DaoCommunityAccount2> resultsTmp = (List<DaoCommunityAccount2>) query.execute(user);
         
          if(resultsTmp.size() != 0 )
          {
            DaoCommunityAccount2 daoComAcc = resultsTmp.get(0);
            CommunityAccount comAcc=  TransformDtoObject.TransformDaoCommunityAccountToCommunityAccount(daoComAcc);
            String previousDate = "";
            for (DaoCommunityAccount2 myDaoCommunityAccount : resultsTmp ) {
              //si 2 dates identiques se suivent on ne prend la deuxième
              String dateCurrent = "";
              if (myDaoCommunityAccount.getDateCommunityAccount() != null) {
                dateCurrent = sdf.format(myDaoCommunityAccount.getDateCommunityAccount());
                if (!dateCurrent.equalsIgnoreCase(previousDate)) {
                  comAcc.listDates.add(dateCurrent);
                  comAcc.listbattles.add(myDaoCommunityAccount.getData().getStats().getBattles());
                 
                  comAcc.listBattlesWins.add(myDaoCommunityAccount.getData().getStats().getBattle_wins());
                  CommunityAccount comA=  TransformDtoObject.TransformDaoCommunityAccountToCommunityAccount(myDaoCommunityAccount);
                 
                  comAcc.listDataPlayerInfos.add(comA.getData());
                }
              }
              previousDate = dateCurrent;
            }
            resultsFinal.add(comAcc);
View Full Code Here

            List<DaoCommunityAccount2> resultsTmp = (List<DaoCommunityAccount2>) query.execute(user);
           
            if(resultsTmp.size() != 0 )
            {
              DaoCommunityAccount2 daoComAcc = resultsTmp.get(0);
              CommunityAccount comAcc=  TransformDtoObject.TransformDaoCommunityAccountToCommunityAccount(daoComAcc);
              String previousDate = "";
              for (DaoCommunityAccount2 myDaoCommunityAccount : resultsTmp ) {
                //si 2 dates identiques se suivent on ne prend la deuxième
                String dateCurrent = "";
                if (myDaoCommunityAccount.getDateCommunityAccount() != null) {
View Full Code Here

            List<DaoCommunityAccount2> resultsTmp = (List<DaoCommunityAccount2>) query.execute(user);
           
            if(resultsTmp.size() != 0 )
            {
              DaoCommunityAccount2 daoComAcc = resultsTmp.get(0);
              CommunityAccount comAcc=  TransformDtoObject.TransformDaoCommunityAccountToCommunityAccount(daoComAcc);
              String previousDate = "";
              for (DaoCommunityAccount2 myDaoCommunityAccount : resultsTmp ) {
                //si 2 dates identiques se suivent on ne prend la deuxième
                String dateCurrent = "";
                if (myDaoCommunityAccount.getDateCommunityAccount() != null) {
                  dateCurrent = sdf.format(myDaoCommunityAccount.getDateCommunityAccount());
                  if (!dateCurrent.equalsIgnoreCase(previousDate)) {
                    CommunityAccount comAccForList=  TransformDtoObject.TransformDaoCommunityAccountToCommunityAccount(myDaoCommunityAccount);
                    comAcc.listDates.add(dateCurrent);
                    //comAcc.listBattlesTanks.add(comAccForList.g);  //bug now !!!!
                   
                    //comAcc.listBattlesTanksWins.add(myDaoCommunityAccount.getData().getStatsVehicules().getBattle_wins());
                  }
View Full Code Here

      //make some calculation of stats
      for(CommunityAccount communityAccount : listCommunityAccount1) {
        String user_id = communityAccount.getIdUser();
     
        //setData.
        CommunityAccount  histStatUser= mapHistStatsUsers.get(user_id);
       
        //calcul du tier moyen
        //Double nbBattles = 0.0;
        //Double levelByBattles = 0.0 ;
        //log.warning("histStatUser " + histStatUser);
        //log.warning("histStatUser.getData() " + histStatUser.getData());
        ///log.warning("commAcc.getData().getAverageLevel " + commAcc.getData().getAverageLevel);
       
        Double averageLevelTank =histStatUser.getData().getStatistics().getAllStatistics().getAverageLevelTankCalc();
        Double wn8 =histStatUser.getData().getStatistics().getAllStatistics().getWn8();
       
        DataPlayerInfos myDataCommunityAccountRatings = communityAccount.getData();
       
        //average level tank
        myDataCommunityAccountRatings.getStatistics().getAllStatistics().setAverageLevelTankCalc(averageLevelTank);
View Full Code Here

      // Add a selection model to handle user selection.
      final SingleSelectionModel<CommunityAccount> selectionModel = new SingleSelectionModel<CommunityAccount>();
      tableStatsCommAcc.setSelectionModel(selectionModel);
      selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
        public void onSelectionChange(SelectionChangeEvent event) {
          CommunityAccount selected = selectionModel.getSelectedObject();
          if (selected != null) {
            //Window.alert("You selected: " + selected.getName());
          }
        }
      });
View Full Code Here

        // Add a selection model to handle user selection.
        final SingleSelectionModel<CommunityAccount> selectionModel = new SingleSelectionModel<CommunityAccount>();
        tableHistorizedStatsCommAcc.setSelectionModel(selectionModel);
        selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
          public void onSelectionChange(SelectionChangeEvent event) {
            CommunityAccount selected = selectionModel.getSelectedObject();
            if (selected != null) {
              //Window.alert("You selected: " + selected.getName());
            }
          }
        });
View Full Code Here

        // Add a selection model to handle user selection.
        final SingleSelectionModel<CommunityAccount> selectionModel = new SingleSelectionModel<CommunityAccount>();
        tableHistorizedStatsTanksCommAcc.setSelectionModel(selectionModel);
        selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
          public void onSelectionChange(SelectionChangeEvent event) {
            CommunityAccount selected = selectionModel.getSelectedObject();
            if (selected != null) {
              //Window.alert("You selected: " + selected.getName());
            }
          }
        });
View Full Code Here

          //lecture de la composition du clan en base wotachievement et seulement une fois
         
         
          //build a HTML result
          if (listCommAcc.size() > 0) {
            CommunityAccount commAcc = listCommAcc.get(0);
           
            double wn8 = commAcc.getData().getStatistics().getAllStatistics().getWn8();
            //trunc wn8
            wn8 = round(wn8);
 
            double wr = (double)commAcc.getData().getStatistics().getAllStatistics().getWins()/(double)commAcc.getData().getStatistics().getAllStatistics().getBattles();
            wr = wr * 100;
            //trunc Wr
            wr = round(wr);
         
            //stats du jour d'avant
            CommunityAccount commAccBef = null;
            double wn8Bef = 0;
            double wrBef = 0;
            if (listCommAcc.size() > 1) {
              commAccBef = listCommAcc.get(1);
                wn8Bef = commAccBef.getData().getStatistics().getAllStatistics().getWn8();
                wrBef = (double)commAccBef.getData().getStatistics().getAllStatistics().getWins()/(double)commAccBef.getData().getStatistics().getAllStatistics().getBattles();
                wrBef = wrBef *100;
               
                   //trunc wn8Febore
                wn8Bef = round(wn8Bef);
                     
View Full Code Here

                 
                  if(resultsTmp.size() >= )
                  {
                    for (DaoCommunityAccount2 myDaoCommunityAccount : resultsTmp ) {
                      //DaoCommunityAccount2 daoComAcc = resultsTmp.get(0);
                      CommunityAccount comAcc=  TransformDtoObject.TransformDaoCommunityAccountToCommunityAccount(myDaoCommunityAccount);
                      String previousDate = "";
                   
                      //si 2 dates identiques se suivent on ne prend la deuxième
                      String dateCurrent = "";
                      if (myDaoCommunityAccount.getDateCommunityAccount() != null) {
View Full Code Here

TOP

Related Classes of com.wot.shared.CommunityAccount

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.