org.dc.riot.lol.rx.model.staticdata.RecommendedDto 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.staticdata;
/**
* This object contains champion recommended data.
*
* @author Dc
* @since 1.0.0
*/
public class RecommendedDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private BlockDto[] blocks;
private String champion;
private String map;
private String mode;
private Boolean priority;
private String title;
private String type;
public RecommendedDto() {
COUNT++;
}
public BlockDto[] getBlocks() {
if (blocks == null) {
return new BlockDto[0];
}
return blocks;
}
public String getChampion() {
return champion;
}
public String getMap() {
return map;
}
public String getMode() {
return mode;
}
/**
* @return Is priority or false
if not defined.
*/
public boolean isPriority() {
if (priority == null) {
return false;
}
return priority.booleanValue();
}
public String getTitle() {
return title;
}
public String getType() {
return type;
}
}