Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.currentgame;
 
 
    private static final long serialVersionUID = -6508689007548363848L;
    private Champion champion;

    

Parameters:
data the underlying dto
        super(datacom.robrua.orianna.type.dto.currentgame.BannedChampion.class);
    }

    
Gets the champion that was banned

Returns:
the champion that was banned
    public Champion getChampion() {
        if( != null) {
            return ;
        }
        final Long l = .getChampionId();
        if(l == null) {
            throw new MissingDataException("Champion ID is null.");
        }
         = RiotAPI.getChampionByID(l.longValue());
        return ;
    }

    
The ID of the banned champion

Returns:
the ID of the banned champion
    public long getChampionID() {
        return super.getLong(.getChampionId());
    }

    
The turn during which the champion was banned

Returns:
the turn during which the champion was banned
    public int getPickTurn() {
        return super.getInteger(.getPickTurn());
    }

    
The team that banned the champion

Returns:
the team that banned the champion
    public Side getTeam() {
        return Side.forID(super.getLong(.getTeamId()));
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "BannedChampion (" + getChampion() + ")";
    }
New to GrepCode? Check out our FAQ X