public static bool CompareIntentData(IntentData intent1, IntentData intent2)
        {
            if (!intent1.name.Equals(intent2.name))
            {
                return(false);
            }

            if (intent1.phrases.Count != intent2.phrases.Count)
            {
                return(false);
            }

            foreach (string phrase in intent1.phrases)
            {
                if (!intent2.phrases.Contains(phrase))
                {
                    return(false);
                }
            }

            foreach (string phrase in intent2.phrases)
            {
                if (!intent1.phrases.Contains(phrase))
                {
                    return(false);
                }
            }

            return(true);
        }
        public static WatsonIntentCreate CreateInstance(LexiconWorkspace workspace, IntentData intentData)
        {
            WatsonIntentCreate instance = CreateInstance <WatsonIntentCreate>();

            instance.workspace   = workspace;
            instance.localIntent = intentData;
            return(instance);
        }