Пример #1
0
 public PollRemover(
     TelegramProxies.NimRaidBot proxy,
     IGetPollsToCleanUpsQuery getPollsToCleanUpsQuery,
     IGetActivePogoGroups getActiveUsers,
     IDeletePollsByIdsCommand deletePollsByIdsCommand
     )
 {
     this.proxy = proxy;
     this.getPollsToCleanUpsQuery = getPollsToCleanUpsQuery;
     this.getActiveUsers          = getActiveUsers;
     this.deletePollsByIdsCommand = deletePollsByIdsCommand;
 }
Пример #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);
        }