Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.core.matchlist;
  
  import java.util.Date;
  
 
     private static final long serialVersionUID = 640038236526052116L;
 
     private Champion champion;

    

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

    
The focus player's champion

Returns:
the focus player's champion
 
     public Champion getChampion() {
         if( != null) {
             return ;
         }
 
         final Long l = .getChampion();
         if(l == null) {
             throw new MissingDataException("Champion ID is null.");
         }
 
          = RiotAPI.getChampionByID(l);
         return ;
     }

    
Champion ID

Returns:
champion ID
 
     public long getChampionID() {
         return super.getLong(.getChampion());
     }

    
The match ID

Returns:
match ID
 
     public long getID() {
         return super.getLong(.getMatchId());
     }

    
The lane the focus player played in

Returns:
lane the focus player played in
 
     public Lane getLane() {
         return Lane.valueOf(super.getString(.getLane()));
     }

    
The match (via match API)

Returns:
the match (via match API)
 
     public Match getMatch() {
         return RiotAPI.getMatch(getID());
     }

    
The platform ID for the match

Returns:
platform ID for the match
 
     public PlatformID getPlatformID() {
         return PlatformID.valueOf(super.getString(.getPlatformId()));
     }

    
The queue type for the match

Returns:
queue type for the match
 
     public QueueType getQueueType() {
         return QueueType.valueOf(super.getString(.getQueue()));
    }

    
The focus player's role

Returns:
focus player's role
    public Role getRole() {
        return Role.valueOf(super.getString(.getRole()));
    }

    
The season for the match

Returns:
season for the match
    public Season getSeason() {
        return Season.valueOf(super.getString(.getSeason()));
    }

    
The timestamp of the match

Returns:
timestamp of the match
    public Date getTimestamp() {
        return super.getDate(.getTimestamp());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "MatchReference (" + getID() + ")";
    }
New to GrepCode? Check out our FAQ X