From 86575fd6797937c46d1045a28b276e3c76b76f36 Mon Sep 17 00:00:00 2001 From: AdityaKasar Date: Mon, 25 Nov 2024 20:38:17 +0530 Subject: [PATCH] fix: Pascal casing method name --- languages/cpp/templates/methods/allowsFocus.cpp | 4 ++-- languages/cpp/templates/methods/calls-metrics.cpp | 2 +- languages/cpp/templates/methods/default.cpp | 2 +- languages/cpp/templates/methods/event.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/languages/cpp/templates/methods/allowsFocus.cpp b/languages/cpp/templates/methods/allowsFocus.cpp index d990ba96..a27e44fb 100644 --- a/languages/cpp/templates/methods/allowsFocus.cpp +++ b/languages/cpp/templates/methods/allowsFocus.cpp @@ -24,7 +24,7 @@ JsonObject jsonParameters; ${method.params.serialization} - Firebolt::Error status = FireboltSDK::Async::Instance().Invoke<${method.result.json.type}>(_T("${info.title.lowercase}.${method.name}"), jsonParameters, ${method.name}AsyncResponseInnerCallback, reinterpret_cast(&response)); + Firebolt::Error status = FireboltSDK::Async::Instance().Invoke<${method.result.json.type}>(_T("${info.title}.${method.name}"), jsonParameters, ${method.name}AsyncResponseInnerCallback, reinterpret_cast(&response)); if (status == Firebolt::Error::None) { FIREBOLT_LOG_INFO(FireboltSDK::Logger::Category::OpenRPC, FireboltSDK::Logger::Module(), "${info.Title}.${method.name} is successfully invoked"); } else { @@ -38,7 +38,7 @@ } void ${info.Title}Impl::abort${method.Name}(I${info.Title}AsyncResponse& response, Firebolt::Error *err) { - Firebolt::Error status = FireboltSDK::Async::Instance().Abort(_T("${info.title.lowercase}.${method.name}"), reinterpret_cast(&response)); + Firebolt::Error status = FireboltSDK::Async::Instance().Abort(_T("${info.title}.${method.name}"), reinterpret_cast(&response)); if (err != nullptr) { *err = status; } diff --git a/languages/cpp/templates/methods/calls-metrics.cpp b/languages/cpp/templates/methods/calls-metrics.cpp index 9c508c55..0daa27c6 100644 --- a/languages/cpp/templates/methods/calls-metrics.cpp +++ b/languages/cpp/templates/methods/calls-metrics.cpp @@ -14,7 +14,7 @@ JsonObject jsonParameters; ${method.params.serialization.with.indent} ${method.result.json.type} jsonResult; - status = transport->Invoke("${info.title.lowercase}.${method.name}", jsonParameters, jsonResult); + status = transport->Invoke("${info.title}.${method.name}", jsonParameters, jsonResult); if (status == Firebolt::Error::None) { FIREBOLT_LOG_INFO(FireboltSDK::Logger::Category::OpenRPC, FireboltSDK::Logger::Module(), "${info.Title}.${method.name} is successfully invoked"); ${if.result.nonvoid}${method.result.instantiation.with.indent}${end.if.result.nonvoid} diff --git a/languages/cpp/templates/methods/default.cpp b/languages/cpp/templates/methods/default.cpp index 533c914e..1e333bce 100644 --- a/languages/cpp/templates/methods/default.cpp +++ b/languages/cpp/templates/methods/default.cpp @@ -9,7 +9,7 @@ JsonObject jsonParameters; ${method.params.serialization.with.indent} ${method.result.json.type} jsonResult; - statusError = transport->Invoke("${info.title.lowercase}.${method.name}", jsonParameters, jsonResult); + statusError = transport->Invoke("${info.title}.${method.name}", jsonParameters, jsonResult); if (statusError == Firebolt::Error::None) { FIREBOLT_LOG_INFO(FireboltSDK::Logger::Category::OpenRPC, FireboltSDK::Logger::Module(), "${info.Title}.${method.name} is successfully invoked"); ${if.result.nonvoid}${method.result.instantiation.with.indent}${end.if.result.nonvoid} diff --git a/languages/cpp/templates/methods/event.cpp b/languages/cpp/templates/methods/event.cpp index 8f21e9d7..2ec777f6 100644 --- a/languages/cpp/templates/methods/event.cpp +++ b/languages/cpp/templates/methods/event.cpp @@ -54,7 +54,7 @@ } void ${info.Title}Impl::globalSubscribe( I${info.Title}::I${method.Name}Notification& notification, Firebolt::Error *err ) { - const string eventName = _T("${info.title.lowercase}.${method.rpc.name}"); + const string eventName = _T("${info.title}.${method.rpc.name}"); Firebolt::Error status = Firebolt::Error::None; JsonObject jsonParameters; @@ -66,7 +66,7 @@ } void ${info.Title}Impl::globalUnsubscribe( I${info.Title}::I${method.Name}Notification& notification, Firebolt::Error *err ) { - Firebolt::Error status = FireboltSDK::Event::Instance().Unsubscribe(_T("${info.title.lowercase}.${method.rpc.name}"), reinterpret_cast(¬ification)); + Firebolt::Error status = FireboltSDK::Event::Instance().Unsubscribe(_T("${info.title}.${method.rpc.name}"), reinterpret_cast(¬ification)); if (err != nullptr) { *err = status;