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

org.dc.riot.lol.rx.model.featuredgame.FeaturedGamesDto Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package org.dc.riot.lol.rx.model.featuredgame;

/**
 * Spectate featured games DTO.
 * 
 * @author Dc
 * @since 1.0.0
 */
public class FeaturedGamesDto {
	private static long COUNT = 0;
	public static long getInstanceCount() {
		return COUNT;
	}

    private Long clientRefreshInterval;
    private FeaturedGameInfo[] gameList;
    
    public FeaturedGamesDto() {
    	COUNT++;
    }

    /**
     * @return The suggested interval to wait before
     * requesting FeaturedGames again or
     * -1 if not defined.
     */
    public long getClientRefreshInterval() {
    	if (clientRefreshInterval == null) {
    		return -1;
    	}

        return clientRefreshInterval.longValue();
    }

    /**
     * @return The list of featured games.
     */
    public FeaturedGameInfo[] getGameList() {
    	if (gameList == null) {
    		return new FeaturedGameInfo[0];
    	}

        return gameList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy