public void ShowConversation(ConversationConfig config)
 {
     if (javaSupport != null && currentActivity != null)
     {
         javaSupport.CallStatic("showConversation", getSupportConfig(config));
     }
 }
        private AndroidJavaObject getSupportConfig(ConversationConfig config)
        {
            AndroidJavaObject builder = new AndroidJavaObject("net.aihelp.config.ConversationConfig$Builder");

            return(builder.Call <AndroidJavaObject>("build", config.GetConversationIntent(),
                                                    config.IsAlwaysShowHumanSupportButtonInBotPage(), config.GetWelcomeMessage(), config.GetStoryNode()));
        }
 public Builder SetConversationConfig(ConversationConfig conversationConfig)
 {
     if (conversationConfig != null)
     {
         this.conversationConfig = conversationConfig;
     }
     return(this);
 }
Beispiel #4
0
 public void ShowConversation(ConversationConfig config)
 {
     if (!IsHelpCorePrepared())
     {
         return;
     }
     helpCore.ShowConversation(config);
 }
 private OperationConfig(int selectIndex, string conversationTitle, ConversationConfig conversationConfig)
 {
     this.selectIndex        = selectIndex;
     this.conversationTitle  = conversationTitle;
     this.conversationConfig = conversationConfig;
 }
 public Builder SetConversationConfig(ConversationConfig conversationConfig)
 {
     this.conversationConfig = conversationConfig;
     return(this);
 }
 private FaqConfig(int showConversationMoment, ConversationConfig conversationConfig)
 {
     this.showConversationMoment = showConversationMoment;
     this.conversationConfig     = conversationConfig;
 }
Beispiel #8
0
 public static void ShowConversation(ConversationConfig config)
 {
     AIHelpCore.getInstance().ShowConversation(config);
 }
Beispiel #9
0
 public void ShowConversation(ConversationConfig config)
 {
     unity_showConversationConfig(config.GetConversationIntent(), config.IsAlwaysShowHumanSupportButtonInBotPage(), config.GetWelcomeMessage(), config.GetStoryNode());
 }