
/**
 * 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: GenerateModuleJniCpp.js
 */

#include "RNRnWifiP2PSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_init(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "init", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_stop(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "stop", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_setConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "setConfig", "(Lcom/facebook/react/bridge/ReadableMap;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_getConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getConfig", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_discoverPeers(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "discoverPeers", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_stopPeerDiscovery(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "stopPeerDiscovery", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_getAvailablePeersList(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getAvailablePeersList", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_connectWithConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "connectWithConfig", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_cancelConnect(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "cancelConnect", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_createGroup(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "createGroup", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_removeGroup(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "removeGroup", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_getConnectionInfo(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getConnectionInfo", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_getGroupInfo(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getGroupInfo", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_sendFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "sendFile", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_sendFileTo(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "sendFileTo", "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_receiveFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "receiveFile", "(Ljava/lang/String;Ljava/lang/String;ZLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_sendMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "sendMessage", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_sendMessageTo(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "sendMessageTo", "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_startReceivingMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "startReceivingMessage", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

static facebook::jsi::Value __hostFunction_NativeRnWifiP2PSpecJSI_stopReceivingMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "stopReceivingMessage", "()V", args, count, cachedMethodId);
}

NativeRnWifiP2PSpecJSI::NativeRnWifiP2PSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["init"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_init};
  methodMap_["stop"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_stop};
  methodMap_["setConfig"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PSpecJSI_setConfig};
  methodMap_["getConfig"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_getConfig};
  methodMap_["discoverPeers"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_discoverPeers};
  methodMap_["stopPeerDiscovery"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_stopPeerDiscovery};
  methodMap_["getAvailablePeersList"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_getAvailablePeersList};
  methodMap_["connectWithConfig"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PSpecJSI_connectWithConfig};
  methodMap_["cancelConnect"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_cancelConnect};
  methodMap_["createGroup"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_createGroup};
  methodMap_["removeGroup"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_removeGroup};
  methodMap_["getConnectionInfo"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_getConnectionInfo};
  methodMap_["getGroupInfo"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_getGroupInfo};
  methodMap_["sendFile"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PSpecJSI_sendFile};
  methodMap_["sendFileTo"] = MethodMetadata {2, __hostFunction_NativeRnWifiP2PSpecJSI_sendFileTo};
  methodMap_["receiveFile"] = MethodMetadata {3, __hostFunction_NativeRnWifiP2PSpecJSI_receiveFile};
  methodMap_["sendMessage"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PSpecJSI_sendMessage};
  methodMap_["sendMessageTo"] = MethodMetadata {2, __hostFunction_NativeRnWifiP2PSpecJSI_sendMessageTo};
  methodMap_["startReceivingMessage"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PSpecJSI_startReceivingMessage};
  methodMap_["stopReceivingMessage"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PSpecJSI_stopReceivingMessage};
}

std::shared_ptr<TurboModule> RNRnWifiP2PSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
  if (moduleName == "RnWifiP2P") {
    return std::make_shared<NativeRnWifiP2PSpecJSI>(params);
  }
  return nullptr;
}

} // namespace facebook::react
