Example #1
0
 public WebHookResult(IRequestAction action, IEnumerable <SlackActionModel> slackActions)
 {
     ActionName          = action.GetType().Name;
     GithubHookEventName = action.GithubHookEventName;
     SlackJsonType       = action.SlackJsonType;
     SlackActions        = slackActions;
 }
Example #2
0
        public Rule(ICondition condition, IRequestAction requestAction, ICreateNextState createNextState)
        {
            Check.IsNotNull(condition, "condition");
            Check.IsNotNull(requestAction, "requestAction");
            Check.IsNotNull(createNextState, "createNextState");

            this.condition = condition;
            this.requestAction = requestAction;
            this.createNextState = createNextState;
        }
Example #3
0
        private void Update(object sender, PWMessage <MenuCommands> msg)
        {
            IRequestAction action = null;

            _actions.TryGetValue(msg.Content, out action);
            if (action != null)
            {
                LoginAction loginAction = action as LoginAction;
                if (loginAction != null)
                {
                    loginAction.IsCancel = msg.Content == MenuCommands.CancelConnect;
                }

                action.Perform();
            }
        }
Example #4
0
 public IReturnState Execute(CreateRequestActionDelegate createRequestActionDelegate)
 {
     requestAction = new RequestAction(createRequestActionDelegate);
     return this;
 }
Example #5
0
 private ActionTestBuilder(IRequestAction action, ISlackMessaging messaging, ILogger <T> _)
 {
     this.action    = action;
     this.messaging = messaging;
 }
Example #6
0
 public IRequestAction Do(IRequestAction requestAction)
 {
     return requestAction;
 }