Package at.stefangeyer.challonge.rest
Interface RestClient
-
public interface RestClientFactory definitions for the rest clients
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachmentRestClientcreateAttachmentRestClient()Creates an instance of the AttachmentRestClientMatchRestClientcreateMatchRestClient()Creates an instance of the MatchRestClientParticipantRestClientcreateParticipantRestClient()Creates an instance of the ParticipantRestClientTournamentRestClientcreateTournamentRestClient()Creates an instance of the TournamentRestClientvoidinitialize(Credentials credentials, Serializer serializer)Initializes the factory with the necessary dependencies
-
-
-
Method Detail
-
initialize
void initialize(Credentials credentials, Serializer serializer)
Initializes the factory with the necessary dependencies- Parameters:
credentials- The username and api key to useserializer- The serializer to use
-
createTournamentRestClient
TournamentRestClient createTournamentRestClient()
Creates an instance of the TournamentRestClient- Returns:
- TournamentRestClient
-
createParticipantRestClient
ParticipantRestClient createParticipantRestClient()
Creates an instance of the ParticipantRestClient- Returns:
- ParticipantRestClient
-
createMatchRestClient
MatchRestClient createMatchRestClient()
Creates an instance of the MatchRestClient- Returns:
- MatchRestClient
-
createAttachmentRestClient
AttachmentRestClient createAttachmentRestClient()
Creates an instance of the AttachmentRestClient- Returns:
- AttachmentRestClient
-
-