public interface RetrofitParticipantHandler
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Participant> |
addParticipant(String tournament,
ParticipantQuery participant)
Add a participant to a tournament (up until it is started).
|
retrofit2.Call<List<Participant>> |
bulkAddParticipants(String tournament,
List<ParticipantQuery> participants)
Bulk add participants to a tournament (up until it is started).
|
retrofit2.Call<Participant> |
checkInParticipant(String tournament,
int participantId)
Checks a participant in, setting checked_in_at to the current time.
|
retrofit2.Call<Participant> |
deleteParticipant(String tournament,
int participantId)
If the tournament has not started, delete a participant, automatically filling in the abandoned seed number.
|
retrofit2.Call<Participant> |
getParticipant(String tournament,
int participantId,
int includeMatches)
Retrieve a single participant record for a tournament.
|
retrofit2.Call<List<Participant>> |
getParticipants(String tournament)
Retrieve a tournament's participant list.
|
retrofit2.Call<List<Participant>> |
randomizeParticipants(String tournament)
Randomize seeds among participants.
|
retrofit2.Call<Participant> |
undoParticipantCheckIn(String tournament,
int participantId)
Marks a participant as having not checked in, setting checked_in_at to nil.
|
retrofit2.Call<Participant> |
updateParticipant(String tournament,
int participantId,
ParticipantQuery participant)
Update the attributes of a tournament participant.
|
@GET(value="tournaments/{tournament}/participants.json")
retrofit2.Call<List<Participant>> getParticipants(@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)@GET(value="tournaments/{tournament}/participants/{participant_id}.json")
retrofit2.Call<Participant> getParticipant(@Path(value="tournament")
String tournament,
@Path(value="participant_id")
int participantId,
@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)participantId - The participant's unique IDincludeMatches - 0 or 1; Includes an array of associated match records@POST(value="tournaments/{tournament}/participants.json")
retrofit2.Call<Participant> addParticipant(@Path(value="tournament")
String tournament,
@Body
ParticipantQuery participant)
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)participant - The participant data@POST(value="tournaments/{tournament}/participants/bulk_add.json")
retrofit2.Call<List<Participant>> bulkAddParticipants(@Path(value="tournament")
String tournament,
@Body
List<ParticipantQuery> participants)
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)participants - The participant data@PUT(value="tournaments/{tournament}/participants/{participant_id}.json")
retrofit2.Call<Participant> updateParticipant(@Path(value="tournament")
String tournament,
@Path(value="participant_id")
int participantId,
@Body
ParticipantQuery participant)
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)participantId - The participant's unique IDparticipant - The participant data@POST(value="tournaments/{tournament}/participants/{participant_id}/check_in.json")
retrofit2.Call<Participant> checkInParticipant(@Path(value="tournament")
String tournament,
@Path(value="participant_id")
int participantId)
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)participantId - The participant's unique ID@POST(value="tournaments/{tournament}/participants/{participant_id}/undo_check_in.json")
retrofit2.Call<Participant> undoParticipantCheckIn(@Path(value="tournament")
String tournament,
@Path(value="participant_id")
int participantId)
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)participantId - The participant's unique ID@DELETE(value="tournaments/{tournament}/participants/{participant_id}.json")
retrofit2.Call<Participant> deleteParticipant(@Path(value="tournament")
String tournament,
@Path(value="participant_id")
int participantId)
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)participantId - The participant's unique ID@POST(value="tournaments/{tournament}/participants/randomize.json")
retrofit2.Call<List<Participant>> randomizeParticipants(@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)Copyright © 2016. All rights reserved.