public async Task <ApiResponse <BlackMarketResponse> > GetBlackMarketAuctionsAsync(Realm realm) { if (realm.GetRealmExpansion() < Expansion.MistsOfPandaria) { return new ApiResponse <BlackMarketResponse>() { ErrorMessage = InvalidExpansion } } ; ApiParams param = new ApiParams(Endpoints.AuctionsData, Secret, new AuctionHouseBaseRequest(realm)); return(await CommunicateAsync <BlackMarketResponse>(param)); }
public ApiResponse <AuctionHouseInfoResponse> GetBlackMarketInfo(Realm realm) { if (realm.GetRealmExpansion() < Expansion.MistsOfPandaria) { return new ApiResponse <AuctionHouseInfoResponse>() { ErrorMessage = InvalidExpansion } } ; ApiParams param = new ApiParams(Endpoints.AuctionsInfo, Secret, new AuctionHouseBaseRequest(realm)); return(Communicate <AuctionHouseInfoResponse>(param)); }
public ApiResponse <ArenaGame> GetArenaGame(int matchId, Realm realm) { if (realm.GetRealmExpansion() > Expansion.Cataclysm) { return new ApiResponse <ArenaGame>() { CustomError = CustomError.InvalidRealm, ErrorMessage = InvalidExpansion } } ; ApiParams param = new ApiParams(Endpoints.ArenaGame, Secret, new ArenaGameRequest(matchId, realm)); return(Communicate <ArenaGame>(param)); }
public ApiResponse <ArenaTeamReportOpposingTeams> GetArenaTeamReportOpposingTeams(int teamSize, string teamName, Realm realm) { if (realm.GetRealmExpansion() > Expansion.Cataclysm) { return new ApiResponse <ArenaTeamReportOpposingTeams>() { CustomError = CustomError.InvalidRealm, ErrorMessage = InvalidExpansion } } ; ApiParams param = new ApiParams(Endpoints.ArenaTeamReportOpposingTeams, Secret, new ArenaTeamRequest(teamSize, teamName, realm)); return(Communicate <ArenaTeamReportOpposingTeams>(param)); }
public ApiResponse <ArenaLadder> GetArenaLadder(int teamSize, Realm realm) { if (realm.GetRealmExpansion() > Expansion.Cataclysm) { return new ApiResponse <ArenaLadder>() { CustomError = CustomError.InvalidRealm, ErrorMessage = InvalidExpansion } } ; ApiParams param = new ApiParams(Endpoints.ArenaLadder, Secret, new ArenaLadderRequest(teamSize, realm)); return(Communicate <ArenaLadder>(param)); }
public async Task <ApiResponse <ArenaTeamGameChart> > GetArenaTeamGameChartAsync(int teamSize, string teamName, Realm realm) { if (realm.GetRealmExpansion() > Expansion.Cataclysm) { return new ApiResponse <ArenaTeamGameChart>() { CustomError = CustomError.InvalidRealm, ErrorMessage = InvalidExpansion } } ; ApiParams param = new ApiParams(Endpoints.ArenaTeamGameChart, Secret, new ArenaTeamRequest(teamSize, teamName, realm)); return(await CommunicateAsync <ArenaTeamGameChart>(param)); }