/**
 * 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: GenerateModuleObjCpp
 *
 * We create an umbrella header (and corresponding implementation) here since
 * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
 * must have a single output. More files => more genrule()s => slower builds.
 */

#import "RNGoogleLeaderboardsSpec.h"


@implementation NativeGoogleLeaderboardsSpecBase


- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
{
  _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
}
@end


namespace facebook::react {
  
    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_login(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "login", @selector(login:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_checkAuth(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "checkAuth", @selector(checkAuth:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_submitScore(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "submitScore", @selector(submitScore:score:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_onShowLeaderboardsRequested(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "onShowLeaderboardsRequested", @selector(onShowLeaderboardsRequested:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_showLeaderboard(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "showLeaderboard", @selector(showLeaderboard:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_showAchievements(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "showAchievements", @selector(showAchievements:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_unlockAchievement(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "unlockAchievement", @selector(unlockAchievement:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeGoogleLeaderboardsSpecJSI_incrementAchievement(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "incrementAchievement", @selector(incrementAchievement:steps:resolve:reject:), args, count);
    }

  NativeGoogleLeaderboardsSpecJSI::NativeGoogleLeaderboardsSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(params) {
      
        methodMap_["login"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_login};
        
        
        methodMap_["checkAuth"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_checkAuth};
        
        
        methodMap_["submitScore"] = MethodMetadata {2, __hostFunction_NativeGoogleLeaderboardsSpecJSI_submitScore};
        
        
        methodMap_["onShowLeaderboardsRequested"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_onShowLeaderboardsRequested};
        
        
        methodMap_["showLeaderboard"] = MethodMetadata {1, __hostFunction_NativeGoogleLeaderboardsSpecJSI_showLeaderboard};
        
        
        methodMap_["showAchievements"] = MethodMetadata {0, __hostFunction_NativeGoogleLeaderboardsSpecJSI_showAchievements};
        
        
        methodMap_["unlockAchievement"] = MethodMetadata {1, __hostFunction_NativeGoogleLeaderboardsSpecJSI_unlockAchievement};
        
        
        methodMap_["incrementAchievement"] = MethodMetadata {2, __hostFunction_NativeGoogleLeaderboardsSpecJSI_incrementAchievement};
        
  }
} // namespace facebook::react
