コード例 #1
0
        public Announcer2(
            PogoTelegramProxy proxy,
            TelegramProxies.NimRaidBot raidBotProxy,
            DataAccess.Queries.Raid.IGetActivePogoGroups activeUsers,
            DataAccess.Queries.Pokes.IMarkAsProcessedQuery markAsProcessedQuery,
            DataAccess.Queries.Pokes.IGetPokesForChatQuery getPokesForChatQuery,
            DataAccess.Commands.Pokes.IAddPokeNotificationCommand addPokeNotificationCommand,
            Queries.IGetPokeQueueQuery getPokeQueueQuery,
            DataAccess.Queries.PoGo.IGetAllChatsForArea getAllChatsForArea,
            Queries.IGetThrottleQuery getThrottleQuery
            )
        {
            this.proxy        = proxy;
            this.raidBotProxy = raidBotProxy;
            this.activeUsers  = activeUsers;

            this.markAsProcessedQuery = markAsProcessedQuery;

            this.getPokesForChatQuery       = getPokesForChatQuery;
            this.addPokeNotificationCommand = addPokeNotificationCommand;

            this.getPokeQueueQuery  = getPokeQueueQuery;
            this.getThrottleQuery   = getThrottleQuery;
            this.getAllChatsForArea = getAllChatsForArea;
        }
コード例 #2
0
        public MessageProcessor(
            TelegramProxies.NimRaidBot proxy,
            RaidDispatcher dispatcher,
            Queries.StatePeakQuery lastStateQuery,
            DataAccess.Commands.Raid.IModifyChatTitleCommand modifyChatTitleCommand
            ) : base(proxy, dispatcher, lastStateQuery, modifyChatTitleCommand)

        {
        }
コード例 #3
0
        public CreateRaidCommand
        (
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            Queries.StatePeakQuery statePeakQuery,

            ISetChatForManualRaidAndInitializeCommand setChatForManualRaidCommand,
            IGetActiveChatsForUser getActiveChatsForUser,
            IGetCurrentManualRaidQuery getCurrentManualRaidQuery,
            ISetGymForManualRaidCommand setGymForManualRaidCommand,
            ISetTimeModeForManualRaidCommand setTimeModeForManualRaidCommand,
            ISetNowForManualRaidCommand setNowForManualRaidhCommand,
            ISetRaidLevelForManualRaidCommand setRaidLevelForManualRaidCommand,
            ISetPokeIdForManualRaidCommand setPokeIdForManualRaidCommand,
            ICreateManuelRaidCommand createManuelRaidCommand,
            IGetSpecialGymsForChatsQuery getSpecialGymsQuery,
            IGetPogoConfigurationQuery getPogoConfigurationQuery,
            IGetActiveGymsByChatQuery getActiveGymsByChatQuery,

            TelegramProxies.NimRaidBot nimRaidBot

        )
            : base(
                stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery,

                getActiveChatsForUser,
                setChatForManualRaidCommand,
                getCurrentManualRaidQuery,
                getActiveGymsByChatQuery,
                getSpecialGymsQuery,
                setGymForManualRaidCommand,
                createManuelRaidCommand,
                getPogoConfigurationQuery,

                nimRaidBot
                )
        {
            this.setTimeModeForManualRaidCommand  = setTimeModeForManualRaidCommand;
            this.setNowForManualRaidCommand       = setNowForManualRaidhCommand;
            this.setRaidLevelForManualRaidCommand = setRaidLevelForManualRaidCommand;
            this.setPokeIdForManualRaidCommand    = setPokeIdForManualRaidCommand;

            base.Steps.Add(0, this.Step0);

            base.Steps.Add(5, this.Step5);
            base.Steps.Add(6, this.Step6);

            base.Steps.Add(7, this.Step7);
            base.Steps.Add(8, this.Step8);

            base.Steps.Add(9, this.Step9);
            base.Steps.Add(10, this.Step10);

            base.Steps.Add(11, this.Step11);
            base.Steps.Add(12, this.Step12);
        }
コード例 #4
0
 public PollRemover(
     TelegramProxies.NimRaidBot proxy,
     IGetPollsToCleanUpsQuery getPollsToCleanUpsQuery,
     IGetActivePogoGroups getActiveUsers,
     IDeletePollsByIdsCommand deletePollsByIdsCommand
     )
 {
     this.proxy = proxy;
     this.getPollsToCleanUpsQuery = getPollsToCleanUpsQuery;
     this.getActiveUsers          = getActiveUsers;
     this.deletePollsByIdsCommand = deletePollsByIdsCommand;
 }
コード例 #5
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);
        }
コード例 #6
0
        public Announcer(
            TelegramProxies.NimRaidBot proxy,
            TelegramProxies.MinunBot minunBot,
            IGetNextNewRaidQuery getNextNewRaidQuery,
            IMarkEventAsProcessedQuery markAsProcessedQuery,
            IMarkEventAsProcessingQuery markAsProcessingQuery,

            DataAccess.Queries.Raid.IGetActivePogoGroups activeUsers,
            IGetSpecialGymsForChatsQuery getSpecialGymsForChatsQuery,
            Commands.Raid.ICreatePollCommand pollCommand,
            Commands.Raid.ICreatePollText createPollText

            , DataAccess.Queries.PoGo.IPollVotesUsers pollVotesUsers
            , DataAccess.Queries.Raid.IGetActivePollByRaidId getActivePollByRaidId
            , DataAccess.Queries.Raid.IGetRaidTimeOffsetsQuery getRaidTimeOffsetsQuery

            , IGetNextPollToProcessQuery getNextPollToProcessQuery,
            IMarkPollAsProcessedQuery markPollAsProcessedQuery,
            IMarkPollAsProcessingQuery markPollAsProcessingQuery,
            IGetRaidByIdQuery getRaidByIdQuery,
            DataAccess.Queries.Pokes.IGetPokesForChatQuery getPokesForChatQuery,
            IGetRaidBossPreferencesAllQuery getRaidBossPreferencesQuery,
            DataAccess.Queries.Location.IGetCurrentNotificationsQuery getCurrentNotificationsQuery,
            IDeactiveMinunUserCommand deactiveMinunUserCommand
            )
        {
            this.proxy                 = proxy;
            this.minunBot              = minunBot;
            this.getNextNewRaidQuery   = getNextNewRaidQuery;
            this.markAsProcessedQuery  = markAsProcessedQuery;
            this.markAsProcessingQuery = markAsProcessingQuery;

            this.activeUsers = activeUsers;

            this.pollCommand = pollCommand;

            this.createPollText = createPollText;

            this.pollVotesUsers          = pollVotesUsers;
            this.getActivePollByRaidId   = getActivePollByRaidId;
            this.getRaidTimeOffsetsQuery = getRaidTimeOffsetsQuery;

            this.getNextPollToProcessQuery = getNextPollToProcessQuery;
            this.markPollAsProcessedQuery  = markPollAsProcessedQuery;
            this.markPollAsProcessingQuery = markPollAsProcessingQuery;
            this.getRaidByIdQuery          = getRaidByIdQuery;

            this.getSpecialGymsForChatsQuery  = getSpecialGymsForChatsQuery;
            this.getPokesForChatQuery         = getPokesForChatQuery;
            this.getRaidBossPreferencesQuery  = getRaidBossPreferencesQuery;
            this.getCurrentNotificationsQuery = getCurrentNotificationsQuery;
            this.deactiveMinunUserCommand     = deactiveMinunUserCommand;
        }
コード例 #7
0
 public NimPokeBotCleaner(
     TelegramProxies.NimRaidBot proxy,
     IGetPokesToCleanUpQuery getPokesToCleanUpQuery,
     IGetActivePogoGroups getActiveUsers,
     IRemoveNotificationsByIdsCommand removeNotificationsByIdsCommand
     )
 {
     this.proxy = proxy;
     this.getPokesToCleanUpQuery          = getPokesToCleanUpQuery;
     this.getActiveUsers                  = getActiveUsers;
     this.removeNotificationsByIdsCommand = removeNotificationsByIdsCommand;
 }
コード例 #8
0
 public NimRaidBotInactiveUserRemover(
     TelegramProxies.NimRaidBot proxy,
     IGetActivePogoGroups getActiveUsers,
     IRemoveMembershipByUserIdsCommand removeMembershipByUserIdsCommand,
     IGetUsersWithoutMinunConfigurationQuery getUsersWithoutMinunConfigurationQuery,
     IGetInactiveUsersQuery getInactiveUsersQuery
     )
 {
     this.proxy          = proxy;
     this.getActiveUsers = getActiveUsers;
     this.removeMembershipByUserIdsCommand       = removeMembershipByUserIdsCommand;
     this.getUsersWithoutMinunConfigurationQuery = getUsersWithoutMinunConfigurationQuery;
     this.getInactiveUsersQuery = getInactiveUsersQuery;
 }
コード例 #9
0
        public QuestAnnouncer(
            PogoTelegramProxy proxy,
            TelegramProxies.NimRaidBot raidBotProxy,
            DataAccess.Queries.Raid.IGetActivePogoGroups activeUsers,
            DataAccess.Queries.Raid.IGetNextQuestToProcessQuery getNextQuestToProcessQuery,
            DataAccess.Queries.Raid.IMarkQuestAsProcessingQuery markQuestAsProcssingQuery,
            DataAccess.Queries.Raid.IMarkQuestAsProcessedQuery markQuestAsProcessedQuery,
            DataAccess.Queries.Raid.IGetQuestByStopIdQuery getQuestByStopIdQuery
            )
        {
            this.proxy        = proxy;
            this.raidBotProxy = raidBotProxy;
            this.activeUsers  = activeUsers;

            this.getNextQuestToProcessQuery = getNextQuestToProcessQuery;
            this.markQuestAsProcssingQuery  = markQuestAsProcssingQuery;
            this.markQuestAsProcessedQuery  = markQuestAsProcessedQuery;
            this.getQuestByStopIdQuery      = getQuestByStopIdQuery;
        }
コード例 #10
0
        public ModifyRaidCommand(
            IStateUpdateCommand stateUpdateCommand,
            IStatePushCommand statePushCommand,
            IStatePopCommand statePopCommand,
            StatePeakQuery statePeakQuery,

            IGetActiveUserRaids getActiveUserRaids,
            ISetRaidIdToUpdateCommand setRaidIdToUpdateCommand,
            IDeletePollsByIdsCommand deletePollsByIdsCommand,
            IGetCurrentManualRaidQuery getCurrentManualRaidQuery,
            IGetActivePollByRaidId getActivePollByRaidId,
            IGetActivePogoGroups getActivePogoGroups,
            ISetPokeIdForRaidCommand setPokeIdForRaidCommand,


            TelegramProxies.NimRaidBot nimRaidBot

            ) : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.getActiveUserRaids        = getActiveUserRaids;
            this.setRaidIdToUpdateCommand  = setRaidIdToUpdateCommand;
            this.deletePollsByIdsCommand   = deletePollsByIdsCommand;
            this.getCurrentManualRaidQuery = getCurrentManualRaidQuery;
            this.getActivePollByRaidId     = getActivePollByRaidId;
            this.getActivePogoGroups       = getActivePogoGroups;
            this.setPokeIdForRaidCommand   = setPokeIdForRaidCommand;

            this.nimRaidBot = nimRaidBot;

            base.Steps.Add(0, Step0);
            base.Steps.Add(1, Step1);
            base.Steps.Add(2, Step2);
            base.Steps.Add(3, Step3);
            base.Steps.Add(4, Step4);

            base.Steps.Add(5, Step5);
            base.Steps.Add(6, Step6);
            base.Steps.Add(7, Step7);
        }
コード例 #11
0
 public GymsCommand(
     TelegramProxies.NimRaidBot nimRaidBot,
     IGetActiveChatsForUser getActiveChatsForUser,
     IGetNotifyLocationsByChatIdQuery getNotifyLocationsByChatIdQuery,
     IGetActiveGymsForChatQuery getActiveGymsForChatQuery,
     IRemoveNotifyLocationCommand removeNotifyLocationCommand,
     IAddNotifyLocationCommand addNotifyLocationCommand,
     IStateUpdateCommand stateUpdateCommand,
     IStatePushCommand statePushCommand,
     IStatePopCommand statePopCommand,
     StatePeakQuery statePeakQuery)
     : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
 {
     base.Steps.Add(0, Step0);
     base.Steps.Add(1, Step1);
     this.nimRaidBot                      = nimRaidBot;
     this.getActiveChatsForUser           = getActiveChatsForUser;
     this.getNotifyLocationsByChatIdQuery = getNotifyLocationsByChatIdQuery;
     this.getActiveGymsForChatQuery       = getActiveGymsForChatQuery;
     this.removeNotifyLocationCommand     = removeNotifyLocationCommand;
     this.addNotifyLocationCommand        = addNotifyLocationCommand;
 }
コード例 #12
0
        public CreateAbstractEventCommand(
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            Queries.StatePeakQuery statePeakQuery,

            IGetActiveChatsForUser getActiveChatsForUser,
            ISetChatForManualRaidAndInitializeCommand setChatForManualRaidCommand,
            IGetCurrentManualRaidQuery getCurrentManualRaidQuery,
            IGetActiveGymsByChatQuery getActiveGymsByChatQuery,
            IGetSpecialGymsForChatsQuery getSpecialGymsQuery,
            ISetGymForManualRaidCommand setGymForManualRaidCommand,
            ICreateManuelRaidCommand createManuelRaidCommand,
            IGetPogoConfigurationQuery getPogoConfigurationQuery,

            TelegramProxies.NimRaidBot nimRaidBot

            ) : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.getActiveChatsForUser       = getActiveChatsForUser;
            this.setChatForManualRaidCommand = setChatForManualRaidCommand;
            this.getCurrentManualRaidQuery   = getCurrentManualRaidQuery;
            this.getActiveGymsByChatQuery    = getActiveGymsByChatQuery;
            this.getSpecialGymsQuery         = getSpecialGymsQuery;
            this.setGymForManualRaidCommand  = setGymForManualRaidCommand;
            this.createManuelRaidCommand     = createManuelRaidCommand;
            this.getPogoConfigurationQuery   = getPogoConfigurationQuery;
            this.nimRaidBot = nimRaidBot;

            base.Steps.Add(1, this.Step1);
            base.Steps.Add(2, this.Step2);

            base.Steps.Add(3, this.Step3);
            base.Steps.Add(4, this.Step4);

            base.Steps.Add(13, this.Step13);
        }