static void n_OnAuthFinish_Lcom_tencent_mm_opensdk_diffdev_OAuthErrCode_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Tencent.MM.Opensdk.Diffdev.IOAuthListener __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Diffdev.IOAuthListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode p0 = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode> (native_p0, JniHandleOwnership.DoNotTransfer); string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer); __this.OnAuthFinish(p0, p1); }
#pragma warning restore 0649 public void OnAuthFinish(global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode p0, string p1) { var __h = OnAuthFinishHandler; if (__h != null) { __h(sender, new AuthFinishEventArgs(p0, p1)); } }
public unsafe void OnAuthFinish(global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode p0, string p1) { if (id_onAuthFinish_Lcom_tencent_mm_opensdk_diffdev_OAuthErrCode_Ljava_lang_String_ == IntPtr.Zero) { id_onAuthFinish_Lcom_tencent_mm_opensdk_diffdev_OAuthErrCode_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onAuthFinish", "(Lcom/tencent/mm/opensdk/diffdev/OAuthErrCode;Ljava/lang/String;)V"); } IntPtr native_p1 = JNIEnv.NewString(p1); JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onAuthFinish_Lcom_tencent_mm_opensdk_diffdev_OAuthErrCode_Ljava_lang_String_, __args); JNIEnv.DeleteLocalRef(native_p1); }
public static unsafe global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode 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/tencent/mm/opensdk/diffdev/OAuthErrCode;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode __ret = global::Java.Lang.Object.GetObject <global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public AuthFinishEventArgs(global::Com.Tencent.MM.Opensdk.Diffdev.OAuthErrCode p0, string p1) { this.p0 = p0; this.p1 = p1; }