while ((lineUser = readerUser.readLine()) != null) {
AllLinesUser = AllLinesUser + lineUser;
}
readerUser.close();
gsonUser = new Gson();
PlayerTankRatings playerTankRatings = gsonUser.fromJson(AllLinesUser, PlayerTankRatings.class);
/////////////////////////////////
//make some calculation of stats
for(CommunityAccount communityAccount : listCommunityAccount1) {
String user_id = communityAccount.getIdUser();
//
// if(playerVehicles != null) {
// if (playerVehicles.getData() != null ) {
// for (DataPlayerVehicles myDataPlayerVehicles : playerVehicles.getData()) {
// if ( user_id == myDataPlayerVehicles.getStat().getAccount_id() ) {
// for (DataStatVehicle myDataStatVehicle : myDataPlayerVehicles.getStat().getVehicles() ) {
// log.info(""+ myDataStatVehicle.getTank_id());
// }
// }
// }
// }else {
// log.severe("playerVehicles.getData() is null ");
// }
// } else {
// log.severe("playerVehicles is null ");
// }
//Rechercher dans playerTankRatings, les batailles sur tous les char du joueur ( pour caluler son tier moyen)
//
Map<String,List<DataPlayerTankRatings>> mapDataPlayerTankRatings = playerTankRatings.getData();
//Set<Entry<String, List<DataPlayerTankRatings>>> setData = mapDataPlayerTankRatings.entrySet();
//setData.
List<DataPlayerTankRatings> listPlayerTanksRatings = mapDataPlayerTankRatings.get(user_id);
//calcul du tier moyen