
com.github.gpluscb.ggjava.entity.object.response.objects.EntrantResponse Maven / Gradle / Ivy
package com.github.gpluscb.ggjava.entity.object.response.objects;
import com.github.gpluscb.ggjava.entity.EntityType;
import com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject;
import com.github.gpluscb.ggjava.entity.object.response.ListResponse;
import com.github.gpluscb.ggjava.entity.object.response.interfaces.TeamResponse;
import com.github.gpluscb.ggjava.entity.object.response.scalars.BooleanResponse;
import com.github.gpluscb.ggjava.entity.object.response.scalars.IDResponse;
import com.github.gpluscb.ggjava.entity.object.response.scalars.IntResponse;
import com.github.gpluscb.ggjava.entity.object.response.scalars.StringResponse;
/**
* An entrant in an event
*/
public class EntrantResponse extends AbstractGGResponseObject {
private final IDResponse id;
private final EventResponse event;
private final BooleanResponse isDisqualified;
private final StringResponse name;
private final SetConnectionResponse paginatedSets;
private final ListResponse participants;
private final ListResponse seeds;
private final IntResponse skill;
private final StandingResponse standing;
private final StreamsResponse stream;
private final ListResponse streams;
private final TeamResponse team;
public EntrantResponse() {
super(EntityType.ENTRANT);
id = null;
event = null;
isDisqualified = null;
name = null;
paginatedSets = null;
participants = null;
seeds = null;
skill = null;
standing = null;
stream = null;
streams = null;
team = null;
}
public EntrantResponse(IDResponse id, EventResponse event, BooleanResponse isDisqualified, StringResponse name, SetConnectionResponse paginatedSets, ListResponse participants, ListResponse seeds, IntResponse skill, StandingResponse standing, StreamsResponse stream, ListResponse streams, TeamResponse team) {
super(EntityType.ENTRANT, true);
this.id = id;
this.event = event;
this.isDisqualified = isDisqualified;
this.name = name;
this.paginatedSets = paginatedSets;
this.participants = participants;
this.seeds = seeds;
this.skill = skill;
this.standing = standing;
this.stream = stream;
this.streams = streams;
this.team = team;
}
public IDResponse getId() {
checkProvided();
return id;
}
public EventResponse getEvent() {
checkProvided();
return event;
}
public BooleanResponse getIsDisqualified() {
checkProvided();
return isDisqualified;
}
/**
* The entrant name as it appears in bracket: gamerTag of the participant or team name
*/
public StringResponse getName() {
checkProvided();
return name;
}
/**
* Paginated sets for this entrant
*/
public SetConnectionResponse getPaginatedSets() {
checkProvided();
return paginatedSets;
}
public ListResponse getParticipants() {
checkProvided();
return participants;
}
public ListResponse getSeeds() {
checkProvided();
return seeds;
}
public IntResponse getSkill() {
checkProvided();
return skill;
}
/**
* Standing for this entrant given an event. All entrants queried must be in the same event (for now).
*/
public StandingResponse getStanding() {
checkProvided();
return standing;
}
/**
* @deprecated DEPRECATED. Use streams instead, which supports multiple stream types and teams.
*/
@Deprecated
public StreamsResponse getStream() {
checkProvided();
return stream;
}
public ListResponse getStreams() {
checkProvided();
return streams;
}
/**
* Team linked to this entrant, if one exists
*/
public TeamResponse getTeam() {
checkProvided();
return team;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy