/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v0.10.0.0; DO NOT EDIT. */

#nullable enable

namespace TestEnvoys.Memmon
{
    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 TestEnvoys;

    public static partial class Memmon
    {
        /// <summary>
        /// Specializes a <c>CommandExecutor</c> class for Command 'stopTelemetry'.
        /// </summary>
        public class StopTelemetryCommandExecutor : CommandExecutor<EmptyAvro, EmptyAvro>
        {
            /// <summary>
            /// Initializes a new instance of the <see cref="StopTelemetryCommandExecutor"/> class.
            /// </summary>
            public StopTelemetryCommandExecutor(ApplicationContext applicationContext, IMqttPubSubClient mqttClient)
                : base(applicationContext, mqttClient, "stopTelemetry", new AvroSerializer<EmptyAvro, EmptyAvro>())
            {
                TopicTokenMap["modelId"] = "dtmi:akri:samples:memmon;1";
                if (mqttClient.ClientId != null)
                {
                    TopicTokenMap["executorId"] = mqttClient.ClientId;
                }
                TopicTokenMap["commandName"] = "stopTelemetry";
            }
        }
    }
}
