Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.core.match;
  
  import java.util.Date;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
 
     private static final long serialVersionUID = -4989370919962037643L;
     private List<Participantparticipants;
     private List<MatchTeamteams;
     private Timeline timeline;

    

Parameters:
data the underlying dto
 
     public Match(final com.robrua.orianna.type.dto.match.MatchDetail data) {
         super(datacom.robrua.orianna.type.dto.match.MatchDetail.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()));
     }

    
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()));
    }

    
Team information

Returns:
team information
    public List<MatchTeamgetTeams() {
        if( == null) {
             = new ArrayList<>();
            for(final com.robrua.orianna.type.dto.match.Team team : .getTeams()) {
                .add(new MatchTeam(team));
            }
        }
        return Collections.unmodifiableList();
    }

    
Match timeline data

Returns:
match timeline data
    public Timeline getTimeline() {
        if( == null) {
            final Map<IntegerParticipantparts = new HashMap<>();
            for(final Participant p : getParticipants()) {
                parts.put(p.getParticipantID(), p);
            }
             = new Timeline(.getTimeline(), parts);
        }
        return ;
    }

    
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 "MatchDetail (" + getID() + ")";
    }
New to GrepCode? Check out our FAQ X