/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleCpp.js
 */

#include "RNGoogleLeaderboardsSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_login(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->login(
    rt
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_checkAuth(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->checkAuth(
    rt
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_submitScore(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->submitScore(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber()
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_onShowLeaderboardsRequested(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->onShowLeaderboardsRequested(
    rt
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_showLeaderboard(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->showLeaderboard(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_showAchievements(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->showAchievements(
    rt
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_unlockAchievement(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->unlockAchievement(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_incrementAchievement(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeGoogleLeaderboardsCxxSpecJSI *>(&turboModule)->incrementAchievement(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber()
  );
}

NativeGoogleLeaderboardsCxxSpecJSI::NativeGoogleLeaderboardsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("GoogleLeaderboards", jsInvoker) {
  methodMap_["login"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_login};
  methodMap_["checkAuth"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_checkAuth};
  methodMap_["submitScore"] = MethodMetadata {2, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_submitScore};
  methodMap_["onShowLeaderboardsRequested"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_onShowLeaderboardsRequested};
  methodMap_["showLeaderboard"] = MethodMetadata {1, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_showLeaderboard};
  methodMap_["showAchievements"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_showAchievements};
  methodMap_["unlockAchievement"] = MethodMetadata {1, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_unlockAchievement};
  methodMap_["incrementAchievement"] = MethodMetadata {2, __hostFunction_NativeGoogleLeaderboardsCxxSpecJSI_incrementAchievement};
}


} // namespace facebook::react
