microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/AdaptiveCards/ActionType.cs
18lines · 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.AdaptiveCards; |
| 9 | |
| 10 | [JsonConverter(typeof(JsonConverter<ActionType>))] |
| 11 | public partial class ActionType(string value) : StringEnum(value) |
| 12 | { |
| 13 | public static readonly ActionType Execute = new("Action.Execute"); |
| 14 | public bool IsExecute => Execute.Equals(Value); |
| 15 | |
| 16 | public static readonly ActionType Submit = new("Action.Submit"); |
| 17 | public bool IsSubmit => Submit.Equals(Value); |
| 18 | } |