Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.core.matchhistory;
  
  import java.util.Date;
  import java.util.List;
  
 
     private static final long serialVersionUID = 4485966256046956113L;
     private List<Participantparticipants;

    

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

    
Match creation time. Designates when the team select lobby is created and/or the match is made through match making, not when the game actually starts.

Returns:
match creation time. Designates when the team select lobby is created and/or the match is made through match making, not when the game actually starts.
 
     public Date getCreation() {
         return super.getDate(.getMatchCreation());
     }

    
Match duration (in seconds)

Returns:
match duration (in seconds)
 
     public long getDuration() {
         return super.getLong(.getMatchDuration());
     }

    
ID of the match

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

    
Match map

Returns:
match map
 
     public GameMap getMap() {
         return GameMap.forID(super.getInteger(.getMapId()));
     }

    
The match (via match API)

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

    
Match mode

Returns:
match mode
 
     public GameMode getMode() {
         return GameMode.valueOf(super.getString(.getMatchMode()));
     }

    
Participant information

Returns:
participant information
 
     public List<ParticipantgetParticipants() {
         if( == null) {
              = new ArrayList<>();
             for(int i = 0; i < .getParticipants().size(); i++) {
                 final Participant p = new Participant(.getParticipants().get(i), .getParticipantIdentities().get(i));
                .add(p);
            }
        }
        return Collections.unmodifiableList();
    }

    
Platform ID of the match

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

    
Match queue type

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

    
Region where the match was played

Returns:
region where the match was played
    public Region getRegion() {
        return Region.valueOf(super.getString(.getRegion()));
    }

    
Season match was played

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

    
Match type

Returns:
match type
    public GameType getType() {
        return GameType.valueOf(super.getString(.getMatchType()));
    }

    
Match version

Returns:
match version
    public String getVersion() {
        return super.getString(.getMatchVersion());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "MatchSummary (" + getID() + ")";
    }
New to GrepCode? Check out our FAQ X