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

namespace facebook::react {

static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_init(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->init(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_stop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->stop(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_setConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->setConfig(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_getConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->getConfig(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_discoverPeers(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->discoverPeers(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_stopPeerDiscovery(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->stopPeerDiscovery(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_getAvailablePeersList(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->getAvailablePeersList(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_connectWithConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->connectWithConfig(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_cancelConnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->cancelConnect(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_createGroup(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->createGroup(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_removeGroup(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->removeGroup(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_getConnectionInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->getConnectionInfo(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_getGroupInfo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->getGroupInfo(
    rt
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendFile(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->sendFile(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendFileTo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->sendFileTo(
    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].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_receiveFile(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->receiveFile(
    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].asString(rt),
    count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asBool()
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->sendMessage(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendMessageTo(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->sendMessageTo(
    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].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_startReceivingMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->startReceivingMessage(
    rt,
    count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt))
  );
}
static jsi::Value __hostFunction_NativeRnWifiP2PCxxSpecJSI_stopReceivingMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeRnWifiP2PCxxSpecJSI *>(&turboModule)->stopReceivingMessage(
    rt
  );
  return jsi::Value::undefined();
}

NativeRnWifiP2PCxxSpecJSI::NativeRnWifiP2PCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("RnWifiP2P", jsInvoker) {
  methodMap_["init"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_init};
  methodMap_["stop"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_stop};
  methodMap_["setConfig"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PCxxSpecJSI_setConfig};
  methodMap_["getConfig"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_getConfig};
  methodMap_["discoverPeers"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_discoverPeers};
  methodMap_["stopPeerDiscovery"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_stopPeerDiscovery};
  methodMap_["getAvailablePeersList"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_getAvailablePeersList};
  methodMap_["connectWithConfig"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PCxxSpecJSI_connectWithConfig};
  methodMap_["cancelConnect"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_cancelConnect};
  methodMap_["createGroup"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_createGroup};
  methodMap_["removeGroup"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_removeGroup};
  methodMap_["getConnectionInfo"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_getConnectionInfo};
  methodMap_["getGroupInfo"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_getGroupInfo};
  methodMap_["sendFile"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendFile};
  methodMap_["sendFileTo"] = MethodMetadata {2, __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendFileTo};
  methodMap_["receiveFile"] = MethodMetadata {3, __hostFunction_NativeRnWifiP2PCxxSpecJSI_receiveFile};
  methodMap_["sendMessage"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendMessage};
  methodMap_["sendMessageTo"] = MethodMetadata {2, __hostFunction_NativeRnWifiP2PCxxSpecJSI_sendMessageTo};
  methodMap_["startReceivingMessage"] = MethodMetadata {1, __hostFunction_NativeRnWifiP2PCxxSpecJSI_startReceivingMessage};
  methodMap_["stopReceivingMessage"] = MethodMetadata {0, __hostFunction_NativeRnWifiP2PCxxSpecJSI_stopReceivingMessage};
}


} // namespace facebook::react
