org.dc.riot.lol.rx.model.match.Player 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.match;
/**
* This object contains match player information.
*
* @author Dc
* @since 1.0.0
*/
public class Player {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private String matchHistoryUri;
private Integer profileIcon;
private Long summonerId;
private String summonerName;
public Player() {
COUNT++;
}
/**
* @return Match history URI.
*/
public String getMatchHistoryUri() {
return matchHistoryUri;
}
/**
* Implementation note: 0
is a valid
* icon ID.
*
* @return Profile icon ID or -1
* if not defined.
*/
public int getProfileIcon() {
if (profileIcon == null) {
return -1;
}
return profileIcon;
}
/**
* @return Summoner ID or -1
* if not defined.
*/
public long getSummonerId() {
if (summonerId == null) {
return -1;
}
return summonerId;
}
/**
* @return Summoner name.
*/
public String getSummonerName() {
return summonerName;
}
}