Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.core.currentgame;
  
  import java.util.Date;
  import java.util.List;
  
 
     private static final long serialVersionUID = -2835507404250272815L;
     private List<BannedChampionbannedChampions;
     private Observer observer;
     private List<Participantparticipants;

    

Parameters:
data the underlying dto
 
     public CurrentGame(final com.robrua.orianna.type.dto.currentgame.CurrentGameInfo data) {
         super(datacom.robrua.orianna.type.dto.currentgame.CurrentGameInfo.class);
     }

    
Banned champion information

Returns:
banned champion information
 
     public List<BannedChampiongetBannedChampions() {
         if( == null) {
              = new ArrayList<>();
             for(final com.robrua.orianna.type.dto.currentgame.BannedChampion ban : .getBannedChampions()) {
                 .add(new BannedChampion(ban));
             }
         }
 
         return Collections.unmodifiableList();
     }

    
The ID of the game

Returns:
the ID of the game
 
     public long getID() {
         return super.getLong(.getGameId());
     }

    
The amount of time in seconds that has passed since the game started

Returns:
the amount of time in seconds that has passed since the game started
 
     public long getLength() {
         return super.getLong(.getGameLength());
     }

    
The map the game is on

Returns:
the map the game is on
 
     public GameMap getMap() {
         return GameMap.forID(super.getLong(.getMapId()));
     }

    
The game mode

Returns:
the game mode
 
     public GameMode getMode() {
         return GameMode.valueOf(super.getString(.getGameMode()));
     }

    
The observer information

Returns:
the observer information
 
     public Observer getObservers() {
         if( == null) {
              = new Observer(.getObservers());
         }
 
         return ;
     }

    
The participant information

Returns:
the participant information
 
    public List<ParticipantgetParticipants() {
        if( == null) {
             = new ArrayList<>();
            if(.getParticipants() != null) {
                for(final com.robrua.orianna.type.dto.currentgame.Participant part : .getParticipants()) {
                    .add(new Participant(part));
                }
            }
        }
        return Collections.unmodifiableList();
    }

    
The ID of the platform on which the game is being played

Returns:
the ID of the platform on which the game is being played
    public PlatformID getPlatformID() {
        return PlatformID.valueOf(super.getString(.getPlatformId()));
    }

    
The queue type

Returns:
the queue type
    public QueueType getQueueType() {
        return QueueType.forID(super.getLong(.getGameQueueConfigId()));
    }

    
The game start time

Returns:
the game start time
    public Date getStartTime() {
        return super.getDate(.getGameStartTime());
    }

    
The game type

Returns:
the game type
    public GameType getType() {
        return GameType.valueOf(super.getString(.getGameType()));
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "CurrentGameInfo (" + getParticipants() + ")";
    }
New to GrepCode? Check out our FAQ X