示例#1
0
        public NutzerCommand(
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            Queries.StatePeakQuery statePeakQuery,

            IAddUserCommand addUserCommand,
            IGetCurrentUserSettingsQuery getCurrentUserSettingsQuery,
            ISetUserLevelCommand setUserLevelCommand,
            ISetUserNameCommand setUserNameCommand,
            ISetUserTeamCommand setUserTeamCommand

            )
            : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.addUserCommand = addUserCommand;
            this.getCurrentUserSettingsQuery = getCurrentUserSettingsQuery;
            this.setUserLevelCommand         = setUserLevelCommand;
            this.setUserNameCommand          = setUserNameCommand;
            this.setUserTeamCommand          = setUserTeamCommand;


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

            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(5, this.Step5);
            base.Steps.Add(6, this.Step6);
        }
示例#2
0
        public GymsCommand
        (
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            Queries.StatePeakQuery statePeakQuery,

            IAddSpecialGymCommand addSpecialGymCommand,
            IDeleteSpecialGymCommand deleteSpecialGymCommand,
            IGetSpecialGymsForChatsQuery getSpecialGymsQuery,
            IGetGymsByChatQuery getGymsByChatQuery,
            IGetCurrentChatSettingsQuery getCurrentChatSettingsQuery

        )
            : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.addSpecialGymCommand        = addSpecialGymCommand;
            this.deleteSpecialGymCommand     = deleteSpecialGymCommand;
            this.getSpecialGymsQuery         = getSpecialGymsQuery;
            this.getGymsByChatQuery          = getGymsByChatQuery;
            this.getCurrentChatSettingsQuery = getCurrentChatSettingsQuery;

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

            base.Steps.Add(1, this.Step1);
        }
 public MessageProcessor(
     TelegramProxies.MinunBot proxy,
     MinunDispatcher dispatcher,
     Queries.StatePeakQuery lastStateQuery,
     DataAccess.Commands.Raid.IModifyChatTitleCommand modifyChatTitleCommand
     ) : base(proxy, dispatcher, lastStateQuery, modifyChatTitleCommand)
 {
 }
示例#4
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);
        }
示例#5
0
 public UmkreisCommand(
     DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
     DataAccess.Commands.IStatePopCommand statePopCommand,
     DataAccess.Commands.IStatePushCommand statePushCommand,
     Queries.StatePeakQuery statePeakQuery
     )
     : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
 {
     base.Steps.Add(0, this.Step0);
     base.Steps.Add(1, this.Step1);
 }
 public BaseMessageProcessor(
     TelegramBotClient proxy,
     BaseDispatcher dispatcher,
     Queries.StatePeakQuery lastStateQuery,
     DataAccess.Commands.Raid.IModifyChatTitleCommand modifyChatTitleCommand
     )
 {
     this.proxy                  = proxy;
     this.dispatcher             = dispatcher;
     this.lastStateQuery         = lastStateQuery;
     this.modifyChatTitleCommand = modifyChatTitleCommand;
 }
示例#7
0
 public StatefulCommand(
     IStateUpdateCommand stateUpdateCommand,
     IStatePushCommand statePushCommand,
     IStatePopCommand statePopCommand,
     Queries.StatePeakQuery statePeakQuery
     )
 {
     this.stateUpdateCommand = stateUpdateCommand;
     this.statePopCommand    = statePopCommand;
     this.statePushCommand   = statePushCommand;
     this.statePeakQuery     = statePeakQuery;
 }
 public MessageProcessor(
     TelegramProxies.PogoTelegramProxy proxy,
     RaidDispatcher dispatcher,
     Queries.StatePeakQuery lastStateQuery,
     DataAccess.Commands.Raid.IModifyChatTitleCommand modifyChatTitleCommand
     )
     : base(proxy, dispatcher, lastStateQuery, modifyChatTitleCommand)
 {
     this.proxy          = proxy;
     this.dispatcher     = dispatcher;
     this.lastStateQuery = lastStateQuery;
 }
示例#9
0
        public PokeCommand(
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            Queries.StatePeakQuery statePeakQuery,

            IGetPokeBaseValuesQuery getPokeBaseValuesQuery,
            IGetPokeNamesQuery getPokeNamesQuery
            )
            : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.getPokeBaseValuesQuery = getPokeBaseValuesQuery;
            this.getPokeNamesQuery      = getPokeNamesQuery;

            base.Steps.Add(0, this.Step0);
        }
示例#10
0
        public SettingsCommand(
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            Queries.StatePeakQuery statePeakQuery,

            DataAccess.Commands.Raid.ISetNordCommand setNordCommand,
            DataAccess.Commands.Raid.ISetWestCommand setWestCommand,
            DataAccess.Commands.Raid.ISetEastCommand setEastCommand,
            DataAccess.Commands.Raid.ISetSouthCommand setSouthCommand,
            DataAccess.Commands.Raid.IActivateChatCommand activateChatCommand,
            DataAccess.Commands.Raid.ISetMinRaidLevelCommand setRaidLevelCommand,
            DataAccess.Commands.Raid.IAddChatCommand addChatCommand,

            DataAccess.Queries.Raid.IGetCurrentChatSettingsQuery getCurrentChatSettingsQuery
            )
            : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.setNordCommand      = setNordCommand;
            this.setWestCommand      = setWestCommand;
            this.setEastCommand      = setEastCommand;
            this.setSouthCommand     = setSouthCommand;
            this.activateChatCommand = activateChatCommand;
            this.setRaidLevelCommand = setRaidLevelCommand;
            this.addChatCommand      = addChatCommand;

            this.getCurrentChatSettingsQuery = getCurrentChatSettingsQuery;


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

            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(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);
        }
示例#11
0
        public RaidBossCommand(
            DataAccess.Commands.IStateUpdateCommand stateUpdateCommand,
            DataAccess.Commands.IStatePopCommand statePopCommand,
            DataAccess.Commands.IStatePushCommand statePushCommand,
            Queries.StatePeakQuery statePeakQuery,

            IGetRaidBossPreferencesQuery getRaidBossPreferencesQuery,
            IPreferencedBossRemoveCommand preferencedBossRemoveCommand,
            IPreferencedBossAddCommand preferencedBossAddCommand

            )
            : base(stateUpdateCommand, statePushCommand, statePopCommand, statePeakQuery)
        {
            this.getRaidBossPreferencesQuery  = getRaidBossPreferencesQuery;
            this.preferencedBossAddCommand    = preferencedBossAddCommand;
            this.preferencedBossRemoveCommand = preferencedBossRemoveCommand;


            base.Steps.Add(0, this.Step0);
            base.Steps.Add(1, this.Step1);
        }
示例#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);
        }