All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dc.riot.lol.rx.model.status.Shard Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy