org.dc.riot.lol.rx.model.summoner.RunePagesDto 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.summoner;
/**
* This object contains rune pages information.
*
* @author Dc
* @since 1.0.0
*/
public class RunePagesDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private RunePageDto[] pages;
private Long summonerId;
public RunePagesDto() {
COUNT++;
}
/**
* @return Collection of rune pages associated with the summoner
* or empty if not defined.
*/
public RunePageDto[] getPages() {
return pages;
}
/**
* @return Summoner ID or -1
if not defined.
*/
public long getSummonerId() {
if (summonerId == null) {
return -1;
}
return summonerId.longValue();
}
}