Пример #1
0
        public RocketMapImporter(
            T configuration,
            TelegramProxies.NimRaidBot proxy,
            IAddPokesCommand addPokesCommand,
            IUpdatePokesCommand updatePokesCommand,
            IGetActiveAreas getActiveAreas,
            IGetGymsQuery getGymsQuery,
            IGetAllRaidsQuery getAllRaidsQuery,
            IAddRocketMapGymsCommand addGoMapGymsCommand,
            IClearRaidsCommand clearRaidsCommand,
            IAddRaidsCommand addRaidsCommand,
            IUpdateRaidsCommand updateRaidsCommand,
            Queries.IGetCurrentPokesQuery getCurrentPokesQuery2,
            Queries.IGetPokeQueueQuery getPokeQueueQuery,
            DataAccess.Queries.Base.IGetRocketMapMovesQuery getRocketMapMovesQuery,
            IGetStopsQuery getStopsQuery,
            IAddRocketMapStopsCommand addRocketMapStopsCommand,
            IGetAllQuestsQuery getAllQuestsQuery,
            IAddQuestsCommand addQuestsCommand,
            IUpdateQuestsCommand updateQuestsCommand,
            IGetCurrentQuestsQuery getCurrentQuestsQuery
            )
        {
            this.Configuration      = configuration;
            this.proxy              = proxy;
            this.addPokesCommand    = addPokesCommand;
            this.updatePokesCommand = updatePokesCommand;

            this.getActiveAreas = getActiveAreas;

            this.getGyms             = getGymsQuery;
            this.getRaids            = getAllRaidsQuery;
            this.addGoMapGymsCommand = addGoMapGymsCommand;
            this.clearRaidsCommand   = clearRaidsCommand;
            this.addRaidsCommand     = addRaidsCommand;
            this.updateRaidsCommand  = updateRaidsCommand;

            this.getCurrentPokesQuery2 = getCurrentPokesQuery2;
            this.getPokeQueueQuery     = getPokeQueueQuery;

            this.getRocketMapMovesQuery = getRocketMapMovesQuery;

            this.getStopsQuery            = getStopsQuery;
            this.addRocketMapStopsCommand = addRocketMapStopsCommand;

            this.getAllQuestsQuery     = getAllQuestsQuery;
            this.addQuestsCommand      = addQuestsCommand;
            this.updateQuestsCommand   = updateQuestsCommand;
            this.getCurrentQuestsQuery = getCurrentQuestsQuery;

            this.httpClient = new HttpClient();
            this.Configuration.SetCredentials(httpClient);
        }
Пример #2
0
 public UpdateRaidBossCommand(
     IGetActivePollByMessageId getActivePollByMessageId,
     IGetRaidByIdQuery getRaidByIdQuery,
     IGetUserByIdQuery getUserByIdQuery,
     IUpdateRaidsCommand updateRaidsCommand
     )
 {
     this.getActivePollByMessageId = getActivePollByMessageId;
     this.getRaidByIdQuery         = getRaidByIdQuery;
     this.getUserByIdQuery         = getUserByIdQuery;
     this.updateRaidsCommand       = updateRaidsCommand;
 }