Exemplo n.º 1
0
        public async Task <bool> UpdatePoliceScore(int gameId, int score)
        {
            var response = new HttpClientResponse();
            await response.Convert(HttpClientRequestService.Patch($"games/{gameId}/police-score/{score}"));

            return(response.IsSuccessful);
        }
Exemplo n.º 2
0
        public async Task <bool> UseGadget(int playerId, string gadgetName)
        {
            var response = new HttpClientResponse();
            await response.Convert(HttpClientRequestService.Patch($"users/{playerId}/gadgets/{gadgetName}"));

            return(response.IsSuccessful);
        }
Exemplo n.º 3
0
        public async Task <bool> CatchThief(int userId)
        {
            var response = new HttpClientResponse();
            await response.Convert(HttpClientRequestService.Patch($"users/{userId}/catch"));

            return(response.IsSuccessful);
        }