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

org.dc.riot.lol.rx.model.staticdata.RecommendedDto Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy