org.dc.riot.lol.rx.model.stats.RankedStatsDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lol-api-rxjava Show documentation
Show all versions of lol-api-rxjava Show documentation
Service library for League of Legends API
package org.dc.riot.lol.rx.model.stats;
/**
* This object contains ranked stats information.
*
* @author Dc
* @since 1.0.0
*/
public class RankedStatsDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private ChampionStatsDto[] champions;
private Long modifyDate;
private Long summonerId;
public RankedStatsDto() {
COUNT++;
}
/**
* @return Collection of aggregated stats summarized by champion.
*/
public ChampionStatsDto[] getChampions() {
return champions;
}
/**
* @return Date stats were last modified
* specified as epoch milliseconds
* or -1
if not defined.
*/
public long getModifyDate() {
if (modifyDate == null) {
return -1;
}
return modifyDate.longValue();
}
/**
* A summoner ID of -1
usually means that
* the request returned a 404
error code.
* This means that the player has no ranked stats.
*
* @return Summoner ID or -1
if
* not defined.
*/
public long getSummonerId() {
if (summonerId == null) {
return -1;
}
return summonerId.longValue();
}
}