Created
November 13, 2019 22:48
-
-
Save DeeJayTC/5140b608030fd02ee0d7cabf7071a110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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