public interface RetrofitTournamentHandler
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Tournament> |
abortCheckIn(String tournament,
int includeParticipants,
int includeMatches)
When your tournament is in a 'checking_in' or 'checked_in' state,
there's no way to edit the tournament's start time (start_at) or check-in duration (check_in_duration).
|
retrofit2.Call<Tournament> |
createTournament(TournamentQuery tournamentData)
Create a new tournament.
|
retrofit2.Call<Tournament> |
deleteTournament(String tournament)
Deletes a tournament along with all its associated records.
|
retrofit2.Call<Tournament> |
finalizeTournament(String tournament,
int includeParticipants,
int includeMatches)
Finalize a tournament that has had all match scores submitted, rendering its results permanent.
|
retrofit2.Call<Tournament> |
getTournament(String tournament,
int includeParticipants,
int includeMatches)
Retrieve a single tournament record created with your account.
|
retrofit2.Call<List<Tournament>> |
getTournaments(TournamentQueryState state,
TournamentType type,
String createdAfter,
String createdBefore,
String subdomain)
Retrieve a set of tournaments created with your account.
|
retrofit2.Call<Tournament> |
processCheckIns(String tournament,
int includeParticipants,
int includeMatches)
This should be invoked after a tournament's check-in window closes before the tournament is started.
|
retrofit2.Call<Tournament> |
resetTournament(String tournament,
int includeParticipants,
int includeMatches)
Reset a tournament, clearing all of its scores and attachments.
|
retrofit2.Call<Tournament> |
startTournament(String tournament,
int includeParticipants,
int includeMatches)
Start a tournament, opening up first round matches for score reporting.
|
retrofit2.Call<Tournament> |
updateTournament(String tournament,
TournamentQuery tournamentData)
Update a tournament's attributes.
|
@GET(value="tournaments.json") retrofit2.Call<List<Tournament>> getTournaments(@Query(value="state") TournamentQueryState state, @Query(value="type") TournamentType type, @Query(value="created_after") String createdAfter, @Query(value="created_before") String createdBefore, @Query(value="subdomain") String subdomain)
state - only get tournaments with this statetype - only get tournaments with this typecreatedAfter - get tournaments created after this datecreatedBefore - get tournaments created before this datesubdomain - only get tournaments with this subdomain@GET(value="tournaments/{tournament}.json")
retrofit2.Call<Tournament> getTournament(@Path(value="tournament")
String tournament,
@Query(value="include_participants")
int includeParticipants,
@Query(value="include_matches")
int includeMatches)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)includeParticipants - 0 or 1; include a list of participants in the responseincludeMatches - include a list of matches in the response@POST(value="tournaments.json") retrofit2.Call<Tournament> createTournament(@Body TournamentQuery tournamentData)
tournamentData - An object with all the necessary information to create the tournament@PUT(value="tournaments/{tournament}.json")
retrofit2.Call<Tournament> updateTournament(@Path(value="tournament")
String tournament,
@Body
TournamentQuery tournamentData)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)tournamentData - An object with all the necessary information to update the tournament@DELETE(value="tournaments/{tournament}.json")
retrofit2.Call<Tournament> deleteTournament(@Path(value="tournament")
String tournament)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)@POST(value="tournaments/{tournament}/process_check_ins.json")
retrofit2.Call<Tournament> processCheckIns(@Path(value="tournament")
String tournament,
@Query(value="include_participants")
int includeParticipants,
@Query(value="include_matches")
int includeMatches)
NOTE: Checked in participants on the waiting list will be promoted if slots become available.
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)includeParticipants - 0 or 1; include a list of participants in the responseincludeMatches - 0 or 1; include a list of matches in the response@POST(value="tournaments/{tournament}/abort_check_in.json")
retrofit2.Call<Tournament> abortCheckIn(@Path(value="tournament")
String tournament,
@Query(value="include_participants")
int includeParticipants,
@Query(value="include_matches")
int includeMatches)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)includeParticipants - 0 or 1; include a list of participants in the responseincludeMatches - 0 or 1; include a list of matches in the response@POST(value="tournaments/{tournament}/start.json")
retrofit2.Call<Tournament> startTournament(@Path(value="tournament")
String tournament,
@Query(value="include_participants")
int includeParticipants,
@Query(value="include_matches")
int includeMatches)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)includeParticipants - 0 or 1; include a list of participants in the responseincludeMatches - 0 or 1; include a list of matches in the response@POST(value="tournaments/{tournament}/finalize.json")
retrofit2.Call<Tournament> finalizeTournament(@Path(value="tournament")
String tournament,
@Query(value="include_participants")
int includeParticipants,
@Query(value="include_matches")
int includeMatches)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)includeParticipants - 0 or 1; include a list of participants in the responseincludeMatches - 0 or 1; include a list of matches in the response@POST(value="tournaments/{tournament}/reset.json")
retrofit2.Call<Tournament> resetTournament(@Path(value="tournament")
String tournament,
@Query(value="include_participants")
int includeParticipants,
@Query(value="include_matches")
int includeMatches)
tournament - Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim).
If assigned to a subdomain, URL format must be :subdomain-:tournament_url
(e.g. 'test-mytourney' for test.challonge.com/mytourney)includeParticipants - 0 or 1; include a list of participants in the responseincludeMatches - 0 or 1; include a list of matches in the responseCopyright © 2016. All rights reserved.