/* This file is autogenerated. DO NOT CHANGE. All changes will be lost */

#include "testserivcenomessages_client.grpc.qpb.h"

namespace qtgrpc::tests::nomessages {
namespace TestService {
using namespace Qt::StringLiterals;

Client::Client(QObject *parent)
    : QAbstractGrpcClient("qtgrpc.tests.nomessages.TestService"_L1, parent)
{
}


std::shared_ptr<QGrpcCallReply> Client::testMethod(const qtprotobufnamespace::tests::SimpleStringMessage &arg, const QGrpcCallOptions &options)
{
    return call("testMethod"_L1, arg, options);
}

void Client::testMethod(const qtprotobufnamespace::tests::SimpleStringMessage &arg, const QObject *context, const std::function<void(std::shared_ptr<QGrpcCallReply>)> &callback, const QGrpcCallOptions &options)
{
    std::shared_ptr<QGrpcCallReply> reply = call("testMethod"_L1, arg, options);
    QObject::connect(reply.get(), &QGrpcCallReply::finished, context, [reply, callback]() {
        callback(reply);
    }, Qt::SingleShotConnection);
}

} // namespace TestService
} // namespace qtgrpc::tests::nomessages

