public void Initialize()
        {
            LogSystem.InstallDefaultReactors();

            Credentials credentials = new Credentials(Username, Password, url);

            conversation             = new LexiconConversation(credentials);
            conversation.VersionDate = conversationVersionDate;
        }
Beispiel #2
0
        public bool CreateConversation()
        {
            if (workspace.WatsonConversationManager.Username == "" || workspace.WatsonConversationManager.Password == "")
            {
                Debug.LogError("Watson Conversation username and password required to sync");
                succeeded = false;
                isDone    = true;
                return(false);
            }

            Credentials credentials = new Credentials(workspace.WatsonConversationManager.Username,
                                                      workspace.WatsonConversationManager.Password,
                                                      workspace.WatsonConversationManager.Url);

            conversation             = new LexiconConversation(credentials);
            conversation.VersionDate = conversationVersionDate;

            return(true);
        }