Class MatchResource
java.lang.Object
dev.getelements.elements.rest.matchmaking.MatchResource
Manages match resources
Created by patricktwohig on 7/18/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMatch(Match match) voiddeleteMatch(String matchId) intvoidgetMatches(int offset, int count, String search) voidsetAsyncTimeoutLimit(int asyncTimeoutLimit) voidsetAsyncTimeoutLimitAsString(String asyncTimeoutLimit) voidsetMatchService(MatchService matchService) voidsetValidationHelper(ValidationHelper validationHelper)
-
Constructor Details
-
MatchResource
public MatchResource()
-
-
Method Details
-
getMatches
@GET @Produces("application/json") public Pagination<Match> getMatches(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("count") @DefaultValue("20") int count, @QueryParam("search") String search) -
getMatch
-
createMatch
-
deleteMatch
@DELETE @Path("{matchId}") @Produces("application/json") public void deleteMatch(@PathParam("matchId") String matchId) -
getAsyncTimeoutLimit
public int getAsyncTimeoutLimit() -
setAsyncTimeoutLimit
public void setAsyncTimeoutLimit(int asyncTimeoutLimit) -
setAsyncTimeoutLimitAsString
@Inject public void setAsyncTimeoutLimitAsString(@Named("dev.getelements.elements.async.timeout.limit") String asyncTimeoutLimit) -
getMatchService
-
setMatchService
-
getValidationHelper
-
setValidationHelper
-