using System.Text.Json.Serialization;

using Microsoft.Teams.Common;

namespace Microsoft.Teams.Api.Activities.Invokes;

public partial class Name : StringEnum
{
    public partial class Tasks : StringEnum
    {
        public static readonly Tasks Submit = new("task/submit");
        public bool IsSubmit => Submit.Equals(Value);
    }
}

public static partial class Tasks
{
    public class SubmitActivity() : TaskActivity(Name.Tasks.Submit)
    {
        /// <summary>
        /// A value that is associated with the activity.
        /// </summary>
        [JsonPropertyName("value")]
        [JsonPropertyOrder(32)]
        public new required TaskModules.Request Value { get; set; }
    }
}