static void n_OnSuccess_Lcom_aliyun_alink_linksdk_channel_core_base_ARequest_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.IOnCallListener __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.IOnCallListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.ARequest        p0     = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.ARequest> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse       p1     = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnSuccess(p0, p1);
 }
Esempio n. 2
0
        static void n_OnRrpcResponse_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse p1 = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse> (native_p1, JniHandleOwnership.DoNotTransfer);
            __this.OnRrpcResponse(p0, p1);
        }
Esempio n. 3
0
        public unsafe void OnRrpcResponse(string p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse p1)
        {
            if (id_onRrpcResponse_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_ == IntPtr.Zero)
            {
                id_onRrpcResponse_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_ = JNIEnv.GetMethodID(class_ref, "onRrpcResponse", "(Ljava/lang/String;Lcom/aliyun/alink/linksdk/channel/core/base/AResponse;)V");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [2];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onRrpcResponse_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_, __args);
            JNIEnv.DeleteLocalRef(native_p0);
        }
#pragma warning restore 0649

        public void OnSuccess(global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.ARequest p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse p1)
        {
            var __h = OnSuccessHandler;

            if (__h != null)
            {
                __h(sender, new SuccessEventArgs(p0, p1));
            }
        }
 public SuccessEventArgs(global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.ARequest p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse p1)
 {
     this.p0 = p0;
     this.p1 = p1;
 }
        public unsafe void OnSuccess(global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.ARequest p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Base.AResponse p1)
        {
            if (id_onSuccess_Lcom_aliyun_alink_linksdk_channel_core_base_ARequest_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_ == IntPtr.Zero)
            {
                id_onSuccess_Lcom_aliyun_alink_linksdk_channel_core_base_ARequest_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_ = JNIEnv.GetMethodID(class_ref, "onSuccess", "(Lcom/aliyun/alink/linksdk/channel/core/base/ARequest;Lcom/aliyun/alink/linksdk/channel/core/base/AResponse;)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onSuccess_Lcom_aliyun_alink_linksdk_channel_core_base_ARequest_Lcom_aliyun_alink_linksdk_channel_core_base_AResponse_, __args);
        }