4 #ifndef DJINNI_GENERATED_GETETHREUMLIKEWALLETCALLBACK_HPP_JNI_ 5 #define DJINNI_GENERATED_GETETHREUMLIKEWALLETCALLBACK_HPP_JNI_ 7 #include "../../api/GetEthreumLikeWalletCallback.hpp" 8 #include "djinni_support.hpp" 14 using CppType = std::shared_ptr<::ledger::core::api::GetEthreumLikeWalletCallback>;
15 using CppOptType = std::shared_ptr<::ledger::core::api::GetEthreumLikeWalletCallback>;
16 using JniType = jobject;
22 static CppType toCpp(JNIEnv* jniEnv, JniType j) { return ::djinni::JniClass<GetEthreumLikeWalletCallback>::get()._fromJava(jniEnv, j); }
24 static ::djinni::LocalRef<JniType> fromCpp(JNIEnv* jniEnv,
const CppType& c) {
return fromCppOpt(jniEnv, c); }
28 friend ::djinni::JniClass<GetEthreumLikeWalletCallback>;
29 friend ::djinni::JniInterface<::ledger::core::api::GetEthreumLikeWalletCallback, GetEthreumLikeWalletCallback>;
37 void onSuccess(
const std::shared_ptr<::ledger::core::api::EthereumLikeWallet> & wallet,
bool isCreated)
override;
38 void onError(const ::ledger::core::api::Error & error)
override;
41 friend ::djinni::JniInterface<::ledger::core::api::GetEthreumLikeWalletCallback, ::djinni_generated::GetEthreumLikeWalletCallback>;
44 const ::djinni::GlobalRef<jclass> clazz { ::djinni::jniFindClass(
"co/ledger/core/GetEthreumLikeWalletCallback") };
45 const jmethodID method_onSuccess { ::djinni::jniGetMethodID(clazz.get(),
"onSuccess",
"(Lco/ledger/core/EthereumLikeWallet;Z)V") };
46 const jmethodID method_onError { ::djinni::jniGetMethodID(clazz.get(),
"onError",
"(Lco/ledger/core/Error;)V") };
50 #endif //DJINNI_GENERATED_GETETHREUMLIKEWALLETCALLBACK_HPP_JNI_ Definition: GetEthreumLikeWalletCallback.hpp:12
Definition: Account.cpp:22
Definition: proxy_cache_interface.hpp:131
Definition: djinni_support.hpp:223
Definition: GetEthreumLikeWalletCallback.hpp:22
Definition: djinni_support.hpp:379