Class QueryResponse
- java.lang.Object
-
- com.github.gpluscb.ggjava.entity.AbstractGGEntity
-
- com.github.gpluscb.ggjava.entity.object.AbstractGGObject
-
- com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject
-
- com.github.gpluscb.ggjava.entity.object.response.objects.QueryResponse
-
- All Implemented Interfaces:
GGEntity
,GGObject
,GGResponseObject
public class QueryResponse extends AbstractGGResponseObject
-
-
Constructor Summary
Constructors Constructor Description QueryResponse()
QueryResponse(UserResponse currentUser, EventResponse event, LeagueResponse league, ParticipantResponse participant, PhaseResponse phase, PhaseGroupResponse phaseGroup, PlayerResponse player, SeedResponse seed, SetResponse set, ShopResponse shop, StreamsResponse stream, ListResponse<StreamQueueResponse> streamQueue, TeamResponse team, TournamentResponse tournament, TournamentConnectionResponse tournaments, UserResponse user, VideogameResponse videogame, VideogameConnectionResponse videogames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserResponse
getCurrentUser()
Returns the authenticated userEventResponse
getEvent()
Returns an event given its id or slugLeagueResponse
getLeague()
Returns a league given its id or slugParticipantResponse
getParticipant()
Returns a participant given its idPhaseResponse
getPhase()
Returns a phase given its idPhaseGroupResponse
getPhaseGroup()
Returns a phase group given its idPlayerResponse
getPlayer()
Returns a player given an idSeedResponse
getSeed()
Returns a phase seed given its idSetResponse
getSet()
Returns a set given its idShopResponse
getShop()
A shop entityStreamsResponse
getStream()
Returns an stream given its idListResponse<StreamQueueResponse>
getStreamQueue()
Returns all the stream queues for a given tournamentTeamResponse
getTeam()
Returns a team given its idTournamentResponse
getTournament()
Returns a tournament given its id or slugTournamentConnectionResponse
getTournaments()
Paginated, filterable list of tournamentsUserResponse
getUser()
Returns a user given a user slug of the form user/abc123, or idVideogameResponse
getVideogame()
Returns a videogame given its idVideogameConnectionResponse
getVideogames()
Returns paginated list of videogames matching the search criteria.-
Methods inherited from class com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject
checkProvided, isProvided
-
Methods inherited from class com.github.gpluscb.ggjava.entity.AbstractGGEntity
getGGEntityType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.gpluscb.ggjava.entity.GGEntity
getGGEntityType
-
-
-
-
Constructor Detail
-
QueryResponse
public QueryResponse()
-
QueryResponse
public QueryResponse(UserResponse currentUser, EventResponse event, LeagueResponse league, ParticipantResponse participant, PhaseResponse phase, PhaseGroupResponse phaseGroup, PlayerResponse player, SeedResponse seed, SetResponse set, ShopResponse shop, StreamsResponse stream, ListResponse<StreamQueueResponse> streamQueue, TeamResponse team, TournamentResponse tournament, TournamentConnectionResponse tournaments, UserResponse user, VideogameResponse videogame, VideogameConnectionResponse videogames)
-
-
Method Detail
-
getCurrentUser
public UserResponse getCurrentUser()
Returns the authenticated user
-
getEvent
public EventResponse getEvent()
Returns an event given its id or slug
-
getLeague
public LeagueResponse getLeague()
Returns a league given its id or slug
-
getParticipant
public ParticipantResponse getParticipant()
Returns a participant given its id
-
getPhase
public PhaseResponse getPhase()
Returns a phase given its id
-
getPhaseGroup
public PhaseGroupResponse getPhaseGroup()
Returns a phase group given its id
-
getPlayer
public PlayerResponse getPlayer()
Returns a player given an id
-
getSeed
public SeedResponse getSeed()
Returns a phase seed given its id
-
getSet
public SetResponse getSet()
Returns a set given its id
-
getShop
public ShopResponse getShop()
A shop entity
-
getStream
public StreamsResponse getStream()
Returns an stream given its id
-
getStreamQueue
public ListResponse<StreamQueueResponse> getStreamQueue()
Returns all the stream queues for a given tournament
-
getTeam
public TeamResponse getTeam()
Returns a team given its id
-
getTournament
public TournamentResponse getTournament()
Returns a tournament given its id or slug
-
getTournaments
public TournamentConnectionResponse getTournaments()
Paginated, filterable list of tournaments
-
getUser
public UserResponse getUser()
Returns a user given a user slug of the form user/abc123, or id
-
getVideogame
public VideogameResponse getVideogame()
Returns a videogame given its id
-
getVideogames
public VideogameConnectionResponse getVideogames()
Returns paginated list of videogames matching the search criteria.
-
-