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));
        }
Example #3
0
        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));
        }
Example #4
0
        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));
        }
Example #5
0
        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));
        }
Example #6
0
        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));
        }