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

org.dc.riot.lol.rx.model.summoner.RuneSlotDto Maven / Gradle / Ivy

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

/**
 * This object contains rune slot information.
 * 
 * @author Dc
 * @since 1.0.0
 */
public class RuneSlotDto {
	private static long COUNT = 0;
	public static long getInstanceCount() {
		return COUNT;
	}

    private Long runeId;
    private Integer runeSlotId;
    
    public RuneSlotDto() {
    	COUNT++;
    }

    /**
     * For static information correlating to rune IDs,
     * please refer to the LoL Static Data API.
     * 
     * @return Rune ID associated with the rune slot
     * or -1 if not defined.
     */
    public long getRuneId() {
    	if (runeId == null) {
    		return -1;
    	}

        return runeId.longValue();
    }

    /**
     * Slots 1-9 reds, 10-18 yellows, 19-27 blues, and 28-30 quints
     * 
     * @return Rune slot ID or -1 if not defined.
     */
    public int getRuneSlotId() {
    	if (runeSlotId == null) {
    		return -1;
    	}

        return runeSlotId.intValue();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy