public async Task <bool> RemoveTrainerAsync(LeaderboardModel leaderboard, ParticipantModel participant) { if (participant == null || leaderboard == null) { return(false); } return(await _httpManager.DeleteAsync <bool>(ApiConstants.LeaderboardsURL + ApiConstants.LeagueExtension + leaderboard.ID.ToString() + "/" + ApiConstants.TrainerExtension + participant.Username)); }
public async Task <HttpResponseMessage> DeleteAndWait(string id, string key = null, List <string> compositeKey = null, bool?performAsync = false) { return(await _httpManager.DeleteAsync( $"/{_prefixUrl}{Urlfy(id)}{GenerateDeleteKey(key, compositeKey)}", ServerPool.Next().ToString(), GetRequestHeaders(null, null, performAsync))); }