Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }