Re-add the getHistory method.

This commit is contained in:
Me Car 2016-01-31 23:59:45 +09:00
parent 1945e8eaa6
commit a33aa5d2df
4 changed files with 12 additions and 3 deletions

View file

@ -551,6 +551,11 @@ public class User {
return "<not available>";
}
public static String userStatsToHistory(ResultProtos.UserStatsProto proto) {
return "Matches:" + userStatsToMatchHistory(proto) +
" Tourneys: " + userStatsToTourneyHistory(proto);
}
public static String userStatsToMatchHistory(ResultProtos.UserStatsProto proto) {
StringBuilder builder = new StringBuilder();
builder.append(proto.getMatches());