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

namespace facebook::react {

static jsi::Value __hostFunction_NativeCodeUpdaterCxxSpecJSI_reload(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeCodeUpdaterCxxSpecJSI *>(&turboModule)->reload(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeCodeUpdaterCxxSpecJSI_updateBundle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeCodeUpdaterCxxSpecJSI *>(&turboModule)->updateBundle(
    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_NativeCodeUpdaterCxxSpecJSI_getAppVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeCodeUpdaterCxxSpecJSI *>(&turboModule)->getAppVersion(
    rt
  );
}
static jsi::Value __hostFunction_NativeCodeUpdaterCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeCodeUpdaterCxxSpecJSI *>(&turboModule)->addListener(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeCodeUpdaterCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeCodeUpdaterCxxSpecJSI *>(&turboModule)->removeListeners(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
  return jsi::Value::undefined();
}

NativeCodeUpdaterCxxSpecJSI::NativeCodeUpdaterCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("CodeUpdater", jsInvoker) {
  methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeCodeUpdaterCxxSpecJSI_reload};
  methodMap_["updateBundle"] = MethodMetadata {2, __hostFunction_NativeCodeUpdaterCxxSpecJSI_updateBundle};
  methodMap_["getAppVersion"] = MethodMetadata {0, __hostFunction_NativeCodeUpdaterCxxSpecJSI_getAppVersion};
  methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeCodeUpdaterCxxSpecJSI_addListener};
  methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeCodeUpdaterCxxSpecJSI_removeListeners};
}


} // namespace facebook::react
