/// <summary> /// create action button for grouped actions /// </summary> /// <param name="action"></param> /// <returns></returns> private CardAction CreateCardAction(DynamicDialogCore.Models.DTO.Action action) { return(new CardAction() { Title = $"{action.Text}", Type = ActionTypes.PostBack, Value = $"action:{action.NextResponseId}:{action.GetSideEffectsAsString()}", }); }
/// <summary> /// create individual cards for carousel /// </summary> /// <param name="action"></param> /// <returns></returns> private Attachment CreateActionCard(DynamicDialogCore.Models.DTO.Action action) { var card = new HeroCard { Text = action.Text, Buttons = new List <CardAction>() { new CardAction() { Title = $"{action.ShortActionText}", Type = ActionTypes.PostBack, Value = $"action:{action.NextResponseId}:{action.GetSideEffectsAsString()}", } } }; return(card.ToAttachment()); }