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

import (
	"github.com/Azure/iot-operations-sdks/go/protocol"
)

type ResetCommandExecutor struct {
	*protocol.CommandExecutor[any, any]
}

func NewResetCommandExecutor(
	app *protocol.Application,
	client protocol.MqttClient,
	requestTopic string,
	handler protocol.CommandHandler[any, any],
	opt ...protocol.CommandExecutorOption,
) (*ResetCommandExecutor, error) {
	var err error
	executor := &ResetCommandExecutor{}

	var opts protocol.CommandExecutorOptions
	opts.Apply(
		opt,
		protocol.WithTopicTokens{
			"commandName": "reset",
		},
		protocol.WithIdempotent(false),
	)

	executor.CommandExecutor, err = protocol.NewCommandExecutor(
		app,
		client,
		protocol.Empty{},
		protocol.Empty{},
		requestTopic,
		handler,
		&opts,
	)

	return executor, err
}
