ledger-core
GetEthreumLikeWalletCallback.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from ethereum_like_wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_GETETHREUMLIKEWALLETCALLBACK_HPP_JNI_
5 #define DJINNI_GENERATED_GETETHREUMLIKEWALLETCALLBACK_HPP_JNI_
6 
7 #include "../../api/GetEthreumLikeWalletCallback.hpp"
8 #include "djinni_support.hpp"
9 
10 namespace djinni_generated {
11 
12 class GetEthreumLikeWalletCallback final : ::djinni::JniInterface<::ledger::core::api::GetEthreumLikeWalletCallback, GetEthreumLikeWalletCallback> {
13 public:
14  using CppType = std::shared_ptr<::ledger::core::api::GetEthreumLikeWalletCallback>;
15  using CppOptType = std::shared_ptr<::ledger::core::api::GetEthreumLikeWalletCallback>;
16  using JniType = jobject;
17 
19 
21 
22  static CppType toCpp(JNIEnv* jniEnv, JniType j) { return ::djinni::JniClass<GetEthreumLikeWalletCallback>::get()._fromJava(jniEnv, j); }
23  static ::djinni::LocalRef<JniType> fromCppOpt(JNIEnv* jniEnv, const CppOptType& c) { return {jniEnv, ::djinni::JniClass<GetEthreumLikeWalletCallback>::get()._toJava(jniEnv, c)}; }
24  static ::djinni::LocalRef<JniType> fromCpp(JNIEnv* jniEnv, const CppType& c) { return fromCppOpt(jniEnv, c); }
25 
26 private:
28  friend ::djinni::JniClass<GetEthreumLikeWalletCallback>;
29  friend ::djinni::JniInterface<::ledger::core::api::GetEthreumLikeWalletCallback, GetEthreumLikeWalletCallback>;
30 
31  class JavaProxy final : ::djinni::JavaProxyHandle<JavaProxy>, public ::ledger::core::api::GetEthreumLikeWalletCallback
32  {
33  public:
34  JavaProxy(JniType j);
35  ~JavaProxy();
36 
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;
39 
40  private:
41  friend ::djinni::JniInterface<::ledger::core::api::GetEthreumLikeWalletCallback, ::djinni_generated::GetEthreumLikeWalletCallback>;
42  };
43 
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") };
47 };
48 
49 } // namespace djinni_generated
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