// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Text.Json.Serialization;

using Microsoft.Teams.Common;

namespace Microsoft.Teams.Api.AdaptiveCards;

[JsonConverter(typeof(JsonConverter<ActionType>))]
public partial class ActionType(string value) : StringEnum(value)
{
    public static readonly ActionType Execute = new("Action.Execute");
    public bool IsExecute => Execute.Equals(Value);

    public static readonly ActionType Submit = new("Action.Submit");
    public bool IsSubmit => Submit.Equals(Value);
}