microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.0-preview.5

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Cards/Actions/MessageBackAction.cs

29lines · modecode

1namespace Microsoft.Teams.Cards;
2
3public class MessageBackAction : SubmitAction
4{
5 public MessageBackAction(string text, string value)
6 {
7 Data = new()
8 {
9 MsTeams = new MessageBackSubmitActionData()
10 {
11 Text = text,
12 Value = value
13 }
14 };
15 }
16
17 public MessageBackAction(string text, string displayText, string value)
18 {
19 Data = new()
20 {
21 MsTeams = new MessageBackSubmitActionData()
22 {
23 Text = text,
24 DisplayText = displayText,
25 Value = value
26 }
27 };
28 }
29}