public static unsafe global::Com.Coinbase.Api.Entity.Account.Type ValueOf(string p0) { if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero) { id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/coinbase/api/entity/Account$Type;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Com.Coinbase.Api.Entity.Account.Type __ret = global::Java.Lang.Object.GetObject <global::Com.Coinbase.Api.Entity.Account.Type> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public virtual unsafe void SetType(global::Com.Coinbase.Api.Entity.Account.Type p0) { if (id_setType_Lcom_coinbase_api_entity_Account_Type_ == IntPtr.Zero) { id_setType_Lcom_coinbase_api_entity_Account_Type_ = JNIEnv.GetMethodID(class_ref, "setType", "(Lcom/coinbase/api/entity/Account$Type;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setType_Lcom_coinbase_api_entity_Account_Type_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setType", "(Lcom/coinbase/api/entity/Account$Type;)V"), __args); } } finally { } }
static void n_SetType_Lcom_coinbase_api_entity_Account_Type_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Coinbase.Api.Entity.Account __this = global::Java.Lang.Object.GetObject <global::Com.Coinbase.Api.Entity.Account> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Coinbase.Api.Entity.Account.Type p0 = global::Java.Lang.Object.GetObject <global::Com.Coinbase.Api.Entity.Account.Type> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetType(p0); }