public Dialogue GetDialogue(string name) => Dialogues.FirstOrDefault(d => d.Name == name);
public Dialogue GetResponse(string triggerText) { return(Dialogues.FirstOrDefault(x => x.TriggerText.Equals(triggerText, StringComparison.CurrentCultureIgnoreCase))); }
/// <summary> /// Get dialogue by name /// </summary> /// <param name="name"></param> /// <returns></returns> public Dialogue GetDialogue(string name) { return(Dialogues.FirstOrDefault(d => d.Name == name)); }