org.dc.riot.lol.rx.model.status.Shard 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.status;
/**
* Server status listing.
*
* @author Dc
* @since 1.0.0
*/
public class Shard {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private String hostname;
private String[] locales;
private String name;
private String region_tag;
private String slug;
public Shard() {
COUNT++;
}
/**
* @return Host name.
*/
public String getHostname() {
return hostname;
}
/**
* @return List of locale strings.
*/
public String[] getLocales() {
if (locales == null) {
return new String[0];
}
return locales;
}
/**
* @return Name.
*/
public String getName() {
return name;
}
/**
* @return Region tag (e.g. 'na1') or null
.
*/
public String getRegionTag() {
return region_tag;
}
/**
* @return Slug.
*/
public String getSlug() {
return slug;
}
}