private Attachment CreateHelpCard(string text) { // TODO: replace with MeetingPurpose var purposes = new List <CardAction>(); var listOfPurposes = MeetingPurpose.GetPurposes(); foreach (var p in listOfPurposes) { purposes.Add(new CardAction("imBack", p, value: p)); } var card = new HeroCard //ThumbnailCard { Title = $"Hi there! :)", Subtitle = $" I'm Yoda and I'm here to help ", Text = "What would you like to know?", Buttons = new List <CardAction>() { new CardAction("imBack", UserMessage.FirstMessage, value: UserMessage.FirstMessage), new CardAction("imBack", UserMessage.ThirdMessage, value: UserMessage.ThirdMessage), new CardAction("imBack", UserMessage.FourthMessage, value: UserMessage.FourthMessage) } }; // Create the attachment. Attachment attachment = new Attachment() { ContentType = HeroCard.ContentType, Content = card }; return(attachment); }
private Attachment CreatePurposesCard() { // TODO: replace with MeetingPurpose var purposes = new List <CardAction>(); var listOfPurposes = MeetingPurpose.GetPurposes(); foreach (var p in listOfPurposes) { purposes.Add(new CardAction("imBack", p, value: p)); } var card = new HeroCard //ThumbnailCard { Title = $"What is the purpose of the meeting?", Buttons = purposes }; // Create the attachment. Attachment attachment = new Attachment() { ContentType = HeroCard.ContentType, Content = card }; return(attachment); }
public bool IsPurpose(string message) { return(MeetingPurpose.GetPurposes().Contains(message)); }