Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

    

Parameters:
data the underlying dto
 
     public ChampionStatus(final com.robrua.orianna.type.dto.champion.Champion data) {
         super(datacom.robrua.orianna.type.dto.champion.Champion.class);
     }

    
Indicates if the champion is active

Returns:
whether the champion is active
 
     public boolean getActive() {
         return super.getBoolean(.getActive());
     }

    
Bot enabled flag (for custom games)

Returns:
whether the champion is enabled for bots in Customs
 
     public boolean getBotEnabled() {
         return super.getBoolean(.getBotEnabled());
     }

    
Bot Match Made enabled flag (for Co-op vs. AI games)

Returns:
whether the champion is enabled for bots in Co-op vs. AI
 
     public boolean getBotMmEnabled() {
         return super.getBoolean(.getBotMmEnabled());
     }

    
Gets the champion this status applies to

Returns:
the champion this status applies to
 
     public Champion getChampion() {
         if( != null) {
             return ;
         }
 
         final Long l = .getId();
         if(l == null) {
             throw new MissingDataException("Champion ID is null.");
         }
 
          = RiotAPI.getChampion(l.longValue());
         return ;
     }

    
Gets the ID of the champion this status applies to

Returns:
the ID of the champion this status applies to
 
     public long getChampionID() {
         return super.getLong(.getId());
     }

    
Indicates if the champion is free to play. Free to play champions are rotated periodically.

Returns:
whether the champion is free to play
 
     public boolean getFreeToPlay() {
         return super.getBoolean(.getFreeToPlay());
     }

    
Ranked play enabled flag.

Returns:
whether the champion is enabled for Ranked
 
     public boolean getRankedPlayEnabled() {
         return super.getBoolean(.getRankedPlayEnabled());
     }
 
     /*
      * (non-Javadoc)
      * @see java.lang.Object#toString()
      */
     @Override
     public String toString() {
        return "ChampionStatus (" + getChampion() + ")";
    }
New to GrepCode? Check out our FAQ X