Examples of DaoDataCommunityAccountRatings2


Examples of com.wot.server.DaoDataCommunityAccountRatings2

    //myDaoDataCommunityAccount.setStatsVehicules(TransformDataCommunityAccountStatsVehiculesToDaoDataCommunityAccountStatsVehicules(map.getVehicles()));
    return myDaoDataCommunityAccount;
  }

  private static DaoDataCommunityAccountRatings2 TransformDataCommunityAccountRatingsToDaoDataCommunityAccountRatings(Statistics statistics) {
    DaoDataCommunityAccountRatings2 myDaoDataCommunityAccountRatings = new DaoDataCommunityAccountRatings2();
   
    //avg perf : ratio wins/battles
    //Double perf =  new Double(statistics.getAllStatistics().getWins())/ new Double(statistics.getAllStatistics().getBattles());
    //myDaoDataCommunityAccountRatings.setBattle_avg_performance(perf);
   
    myDaoDataCommunityAccountRatings.setBattle_avg_performanceCalc(statistics.getAllStatistics().getBattle_avg_performanceCalc());
   
    myDaoDataCommunityAccountRatings.setBattle_avg_xp(new Double(statistics.getAllStatistics().getBattle_avg_xp()));
   
    myDaoDataCommunityAccountRatings.setBattle_wins(new Double(statistics.getAllStatistics().getWins()));
   
    myDaoDataCommunityAccountRatings.setBattles(new Double(statistics.getAllStatistics().getBattles()));
   
    myDaoDataCommunityAccountRatings.setCtf_points(new Double(statistics.getAllStatistics().getCapture_points()));
   
    myDaoDataCommunityAccountRatings.setDamage_dealt(new Double(statistics.getAllStatistics().getDamage_dealt()));
   
    myDaoDataCommunityAccountRatings.setDropped_ctf_points(new Double(statistics.getAllStatistics().getDropped_capture_points()));
   
    myDaoDataCommunityAccountRatings.setFrags(new Double(statistics.getAllStatistics().getFrags()));
   
 
    myDaoDataCommunityAccountRatings.setRatioCtfPoints(new Double(statistics.getAllStatistics().getRatioCtfPoints()));
   
    if (statistics.getAllStatistics().getRatioDamagePoints() != null)
      myDaoDataCommunityAccountRatings.setRatioDamagePoints(new Double(statistics.getAllStatistics().getRatioDamagePoints()));
   
    if(statistics.getAllStatistics().getRatioDestroyedPoints()!= null)
      myDaoDataCommunityAccountRatings.setRatioDestroyedPoints(new Double(statistics.getAllStatistics().getRatioDestroyedPoints()));
   
    if(statistics.getAllStatistics().getRatioDetectedPoints() != null)
      myDaoDataCommunityAccountRatings.setRatioDetectedPoints(new Double(statistics.getAllStatistics().getRatioDetectedPoints()));
   
    if(statistics.getAllStatistics().getRatioDestroyedPoints() != null)
      myDaoDataCommunityAccountRatings.setRatioDroppedCtfPoints(new Double(statistics.getAllStatistics().getRatioDestroyedPoints()));
   
   
    myDaoDataCommunityAccountRatings.setSpotted(new Double(statistics.getAllStatistics().getSpotted()));
   
   
    myDaoDataCommunityAccountRatings.setXp(new Double(statistics.getAllStatistics().getXp()));
   
    myDaoDataCommunityAccountRatings.setAverageLevel(new Double(statistics.getAllStatistics().getAverageLevelTankCalc()));
   
    myDaoDataCommunityAccountRatings.setWn8(new Double(statistics.getAllStatistics().getWn8()));
   
    return myDaoDataCommunityAccountRatings;
  }
View Full Code Here

Examples of com.wot.server.DaoDataCommunityAccountRatings2

    //myDaoDataCommunityAccount.setStatsVehicules(TransformDataCommunityAccountStatsVehiculesToDaoDataCommunityAccountStatsVehicules(map.getVehicles()));
    return myDaoDataCommunityAccount;
  }

  private static DaoDataCommunityAccountRatings2 TransformDataCommunityAccountRatingsToDaoDataCommunityAccountRatings(DataCommunityAccountRatings dataCommunityAccountRatings) {
    DaoDataCommunityAccountRatings2 myDaoDataCommunityAccountRatings = new DaoDataCommunityAccountRatings2();
   
    myDaoDataCommunityAccountRatings.setBattle_avg_performance(new Double(dataCommunityAccountRatings.getBattle_avg_performance()));
   
    if(dataCommunityAccountRatings.getBattle_avg_performanceCalc() != null)
      myDaoDataCommunityAccountRatings.setBattle_avg_performanceCalc(dataCommunityAccountRatings.getBattle_avg_performanceCalc());
   
    myDaoDataCommunityAccountRatings.setBattle_avg_xp(new Double(dataCommunityAccountRatings.getBattle_avg_xp()));
   
    myDaoDataCommunityAccountRatings.setBattle_wins(new Double(dataCommunityAccountRatings.getBattle_wins()));
   
    myDaoDataCommunityAccountRatings.setBattles(new Double(dataCommunityAccountRatings.getBattles()));
   
    myDaoDataCommunityAccountRatings.setCtf_points(new Double(dataCommunityAccountRatings.getCtf_points()));
   
    myDaoDataCommunityAccountRatings.setDamage_dealt(new Double(dataCommunityAccountRatings.getDamage_dealt()));
   
    myDaoDataCommunityAccountRatings.setDropped_ctf_points(new Double(dataCommunityAccountRatings.getDropped_ctf_points()));
   
    myDaoDataCommunityAccountRatings.setFrags(new Double(dataCommunityAccountRatings.getFrags()));
   
    myDaoDataCommunityAccountRatings.setIntegrated_rating(new Double(dataCommunityAccountRatings.getIntegrated_rating()));
   
    if (dataCommunityAccountRatings.getRatioCtfPoints() != null)
      myDaoDataCommunityAccountRatings.setRatioCtfPoints(new Double(dataCommunityAccountRatings.getRatioCtfPoints()));
   
    if (dataCommunityAccountRatings.getRatioDamagePoints() != null)
      myDaoDataCommunityAccountRatings.setRatioDamagePoints(new Double(dataCommunityAccountRatings.getRatioDamagePoints()));
   
    if(dataCommunityAccountRatings.getRatioDestroyedPoints()!= null)
      myDaoDataCommunityAccountRatings.setRatioDestroyedPoints(new Double(dataCommunityAccountRatings.getRatioDestroyedPoints()));
   
    if(dataCommunityAccountRatings.getRatioDetectedPoints() != null)
      myDaoDataCommunityAccountRatings.setRatioDetectedPoints(new Double(dataCommunityAccountRatings.getRatioDetectedPoints()));
   
    if(dataCommunityAccountRatings.getRatioDestroyedPoints() != null)
      myDaoDataCommunityAccountRatings.setRatioDroppedCtfPoints(new Double(dataCommunityAccountRatings.getRatioDestroyedPoints()));
   
   
    myDaoDataCommunityAccountRatings.setSpotted(new Double(dataCommunityAccountRatings.getSpotted()));
   
   
    myDaoDataCommunityAccountRatings.setXp(new Double(dataCommunityAccountRatings.getXp()));
   
    myDaoDataCommunityAccountRatings.setAverageLevel(new Double(dataCommunityAccountRatings.getAverageLevel()));
   
    return myDaoDataCommunityAccountRatings;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.