Package com.wot.shared

Examples of com.wot.shared.CommunityAccount


           
           
            //Set<Entry<String, List<DataPlayerTankRatings>>>  setData = mapDataPlayerTankRatings.entrySet();
            //setData.
            log.warning("mapCommAcc " + mapCommAcc);
            CommunityAccount  commAcc= mapCommAcc.get(user_id);
           
            //calcul du tier moyen
            //Double nbBattles = 0.0;
            //Double levelByBattles = 0.0 ;
            log.warning("commAcc " + commAcc);
            log.warning("commAcc.getData() " + commAcc.getData());
            ///log.warning("commAcc.getData().getAverageLevel " + commAcc.getData().getAverageLevel);
           
            Double averageLevelTank =commAcc.getData().getAverageLevel();
           
//            for (DataPlayerTankRatings dataPlayerTankRatings : listPlayerTanksRatings) {
//              int tankId= dataPlayerTankRatings.getTank_id() ;
//              int battles = dataPlayerTankRatings.getStatistics().getAll().getBattles();
//              //int wins = dataPlayerTankRatings.getStatistics().getAll().getWins();
View Full Code Here


    return myDaoDataCommunityAccountAchievements;
  }

  public static CommunityAccount TransformPlayerRatingsToCommunityAccount(PlayerRatings playerRatings) {
    // TODO Auto-generated method stub
    CommunityAccount myCommunityAccount = new CommunityAccount();
    myCommunityAccount.setStatus( playerRatings.getStatus());
    //myCommunityAccount.setStatus_code(daoAccount.getStatus_code());
    myCommunityAccount.setIdUser(playerRatings.getIdUser());
    //myCommunityAccount.setDateCommunityAccount(daoAccount.getDateCommunityAccount());
    myCommunityAccount.setName(playerRatings.getName());
   
    //myCommunityAccount.setData(TransformDaoDataCommunityAccountToDataCommunityAccount(daoAccount.getData()));
   
    myCommunityAccount.setData(playerRatings.getData().get(playerRatings.getIdUser()));
    return myCommunityAccount;
  }
View Full Code Here

    List<CommunityAccount> myListCommunityAccount = new ArrayList<CommunityAccount>();
   
    Set<Entry<String, DataCommunityAccountRatings>>  set = playerRatings.getData().entrySet();
   
    for(Entry<String, DataCommunityAccountRatings> entry :set) {
      CommunityAccount myCommunityAccount = new CommunityAccount();
      myCommunityAccount.setIdUser(entry.getKey());
      myCommunityAccount.setData(entry.getValue());
      //
      //
      myListCommunityAccount.add(myCommunityAccount);
    }
    return myListCommunityAccount;
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.