Skip to content

Instantly share code, notes, and snippets.

@DeeJayTC
Created November 13, 2019 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeeJayTC/5140b608030fd02ee0d7cabf7071a110 to your computer and use it in GitHub Desktop.
Save DeeJayTC/5140b608030fd02ee0d7cabf7071a110 to your computer and use it in GitHub Desktop.
// Create card
var card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0))
{
// Use LINQ to turn the choices into submit actions
Actions = choices.Select(choice => new AdaptiveSubmitAction
{
Title = choice,
Data = choice, // This will be a string
}).ToList<AdaptiveAction>(),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment