Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }