/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.0.0; DO NOT EDIT. */

#nullable enable

using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using Azure.Iot.Operations.Protocol;
using Azure.Iot.Operations.Protocol.RPC;
using Azure.Iot.Operations.Protocol.Models;
using Azure.Iot.Operations.Services.EdgeRegistry.Host.Generated.Common;

namespace Azure.Iot.Operations.Services.EdgeRegistry.Host.Generated
{
    public static partial class EdgeRegistrySchemaExtensions
    {
        /// <summary>
        /// Specializes a <c>CommandExecutor</c> class for Command 'createSchemaVersion'.
        /// </summary>
        [CommandTopic("aio/registry/schemaExtension/create/schemagroups/schemas/{ex:schemaId}/versions/version")]
        public class CreateSchemaVersionActionExecutor : CommandExecutor<CreateSchemaVersionInputArguments, CreateSchemaVersionResponseSchema>
        {
            /// <summary>
            /// Initializes a new instance of the <see cref="CreateSchemaVersionActionExecutor"/> class.
            /// </summary>
            public CreateSchemaVersionActionExecutor(ApplicationContext applicationContext, IMqttPubSubClient mqttClient)
                : base(applicationContext, mqttClient, "createSchemaVersion", new Utf8JsonSerializer())
            {
                if (mqttClient.ClientId != null)
                {
                    TopicTokenMap["executorId"] = mqttClient.ClientId;
                }
            }
        }
    }
}
