microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Cards/Actions/MessageBackAction.cs
29lines · modecode
| 1 | namespace Microsoft.Teams.Cards; |
| 2 | |
| 3 | public 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 | } |