Example #1
0
        public static WebRequestAction CreateForJSONToSpecialIdentifiers(string url, Dictionary <string, string> jsonToSpecialIdentifiers)
        {
            WebRequestAction action = new WebRequestAction(url, WebRequestResponseActionTypeEnum.JSONToSpecialIdentifiers);

            action.JSONToSpecialIdentifiers = jsonToSpecialIdentifiers;
            return(action);
        }
Example #2
0
        public static WebRequestAction CreateForSpecialIdentifier(string url, string specialIdentifierName)
        {
            WebRequestAction action = new WebRequestAction(url, WebRequestResponseActionTypeEnum.SpecialIdentifier);

            action.SpecialIdentifierName = specialIdentifierName;
            return(action);
        }
Example #3
0
        public static WebRequestAction CreateForChat(string url, string chatText)
        {
            WebRequestAction action = new WebRequestAction(url, WebRequestResponseActionTypeEnum.Chat);

            action.ResponseChatText = chatText;
            return(action);
        }
Example #4
0
        public static WebRequestAction CreateForCommand(string url, CommandBase command, string arguments)
        {
            WebRequestAction action = new WebRequestAction(url, WebRequestResponseActionTypeEnum.Command);

            action.ResponseCommandID            = command.ID;
            action.ResponseCommandArgumentsText = arguments;
            return(action);
        }