Example #1
0
        public static TranslationAction CreateForSpecialIdentifier(CultureInfo culture, string text, bool allowProfanity, string specialIdentifierName)
        {
            TranslationAction action = new TranslationAction(culture, text, allowProfanity, TranslationResponseActionTypeEnum.SpecialIdentifier);

            action.SpecialIdentifierName = specialIdentifierName;
            return(action);
        }
Example #2
0
        public static TranslationAction CreateForChat(CultureInfo culture, string text, bool allowProfanity, string chatText)
        {
            TranslationAction action = new TranslationAction(culture, text, allowProfanity, TranslationResponseActionTypeEnum.Chat);

            action.ResponseChatText = chatText;
            return(action);
        }
Example #3
0
        public static TranslationAction CreateForCommand(CultureInfo culture, string text, bool allowProfanity, CommandBase command, string arguments)
        {
            TranslationAction action = new TranslationAction(culture, text, allowProfanity, TranslationResponseActionTypeEnum.Command);

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