Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            DataDyneIntent dataDyneIntent = obj as DataDyneIntent;

            if (dataDyneIntent == null)
            {
                return(false);
            }

            return(Equals(dataDyneIntent));
        }
Esempio n. 2
0
        public DataDyneIntent Clone()
        {
            DataDyneIntent dataDyneIntent = new DataDyneIntent();

            dataDyneIntent.IntentName  = IntentName;
            dataDyneIntent.Description = Description;
            Dictionary <string, DataDyneIntentSlot> slots = new Dictionary <string, DataDyneIntentSlot>();

            foreach (var slot in Slots)
            {
                slots.Add(slot.Key, slot.Value.Clone());
            }

            dataDyneIntent.Slots = slots;

            return(dataDyneIntent);
        }
Esempio n. 3
0
 public bool Equals(DataDyneIntent dataDyneIntent)
 {
     return(IntentName.Equals(dataDyneIntent.IntentName));
 }