use of fr.neamar.lolgamedata.tips.PlayerStandardTip in project teamward-client by Neamar.
the class FilthyCasualTipBuilder method getTips.
@Override
public ArrayList<Tip> getTips(Game game, Context context) {
ArrayList<Tip> tips = new ArrayList<>();
for (Team team : game.teams) {
for (Player player : team.players) {
if (player.averageTimeBetweenGames > 3600 * 24 * 7) {
String descriptionTemplate = context.getString(R.string.filthy_casual_description);
String description = String.format(descriptionTemplate, player.summoner.name);
tips.add(new PlayerStandardTip(game, player, player.champion.imageUrl, context.getString(R.string.filthy_casual), description));
}
}
}
return tips;
}