public void ShowOperation(OperationConfig config)
 {
     if (javaSupport != null && currentActivity != null)
     {
         javaSupport.CallStatic("showOperation", getOperationConfig(config));
     }
 }
Beispiel #2
0
 public void ShowOperation(OperationConfig config)
 {
     if (!IsHelpCorePrepared())
     {
         return;
     }
     helpCore.ShowOperation(config);
 }
        private AndroidJavaObject getOperationConfig(OperationConfig config)
        {
            AndroidJavaObject builder = new AndroidJavaObject("net.aihelp.config.OperationConfig$Builder");

            builder.Call <AndroidJavaObject>("setSelectIndex", config.GetSelectIndex());
            builder.Call <AndroidJavaObject>("setConversationTitle", config.GetConversationTitle());
            builder.Call <AndroidJavaObject>("setConversationConfig", getSupportConfig(config.GetConversationConfig()));
            return(builder.Call <AndroidJavaObject>("build"));
        }
Beispiel #4
0
 public void ShowOperation(OperationConfig config)
 {
     unity_showOperationConfig(config.GetSelectIndex(),
                               config.GetConversationTitle(),
                               config.GetConversationConfig().GetConversationIntent(),
                               config.GetConversationConfig().IsAlwaysShowHumanSupportButtonInBotPage(),
                               config.GetConversationConfig().GetStoryNode(),
                               config.GetConversationConfig().GetWelcomeMessage());
 }
Beispiel #5
0
 public static void ShowOperation(OperationConfig config)
 {
     AIHelpCore.getInstance().ShowOperation(config);
 }