microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Activities/Invokes/ExecuteActionActivity.cs
27lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | using Microsoft.Teams.Common; |
| 7 | |
| 8 | namespace Microsoft.Teams.Api.Activities.Invokes; |
| 9 | |
| 10 | public partial class Name : StringEnum |
| 11 | { |
| 12 | public static readonly Name ExecuteAction = new("actionableMessage/executeAction"); |
| 13 | public bool IsExecuteAction => ExecuteAction.Equals(Value); |
| 14 | } |
| 15 | |
| 16 | /// <summary> |
| 17 | /// The name of the operation associated with an invoke or event activity. |
| 18 | /// </summary> |
| 19 | public class ExecuteActionActivity(O365.ConnectorCardActionQuery value) : InvokeActivity(Name.ExecuteAction) |
| 20 | { |
| 21 | /// <summary> |
| 22 | /// A value that is associated with the activity. |
| 23 | /// </summary> |
| 24 | [JsonPropertyName("value")] |
| 25 | [JsonPropertyOrder(32)] |
| 26 | public new O365.ConnectorCardActionQuery Value { get; set; } = value; |
| 27 | } |