using AdaptiveCards; | |
// ... | |
AdaptiveCard card = new AdaptiveCard(); | |
var container = new AdaptiveContainer(); | |
var column = new AdaptiveColumn(){Width=Auto}; | |
column.Items.Add(new AdaptiveImage( | |
{ | |
Style="Person", | |
Url = Status.Person.ProfileImage | |
})); | |
container.Items.Add(column); | |
column = new AdaptiveColumn() { Width = Auto }; | |
column.Items.Add(new AdaptiveTextBlock() | |
{ | |
Text = $"The Status for {Status.Person.FirstName} {Status.Person.LastName} was updated" | |
})); | |
container.Items.Add(column); | |
// etc etc to keep the sample small | |
// serialize the card to JSON | |
string json = card.ToJson(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment