org.dc.riot.lol.rx.model.summoner.RuneSlotDto 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 slot information.
*
* @author Dc
* @since 1.0.0
*/
public class RuneSlotDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private Long runeId;
private Integer runeSlotId;
public RuneSlotDto() {
COUNT++;
}
/**
* For static information correlating to rune IDs,
* please refer to the LoL Static Data API.
*
* @return Rune ID associated with the rune slot
* or -1
if not defined.
*/
public long getRuneId() {
if (runeId == null) {
return -1;
}
return runeId.longValue();
}
/**
*
*
* @return Rune slot ID or -1
if not defined.
*/
public int getRuneSlotId() {
if (runeSlotId == null) {
return -1;
}
return runeSlotId.intValue();
}
}