/**
 * 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 "AsyncStorageSpec.h"


@implementation NativeAsyncStorageSpecBase


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


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

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

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

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

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

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

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

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

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

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

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

  NativeAsyncStorageSpecJSI::NativeAsyncStorageSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(params) {
      
        methodMap_["getValues"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageSpecJSI_getValues};
        
        
        methodMap_["setValues"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageSpecJSI_setValues};
        
        
        methodMap_["removeValues"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageSpecJSI_removeValues};
        
        
        methodMap_["getKeys"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_getKeys};
        
        
        methodMap_["clearStorage"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_clearStorage};
        
        
        methodMap_["legacy_multiGet"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_legacy_multiGet};
        
        
        methodMap_["legacy_multiSet"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_legacy_multiSet};
        
        
        methodMap_["legacy_multiRemove"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_legacy_multiRemove};
        
        
        methodMap_["legacy_multiMerge"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageSpecJSI_legacy_multiMerge};
        
        
        methodMap_["legacy_getAllKeys"] = MethodMetadata {0, __hostFunction_NativeAsyncStorageSpecJSI_legacy_getAllKeys};
        
        
        methodMap_["legacy_clear"] = MethodMetadata {0, __hostFunction_NativeAsyncStorageSpecJSI_legacy_clear};
        
  }
} // namespace facebook::react
