#pragma warning restore 0649

        public void OnReceived(string p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.PersistentRequest p1, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle p2)
        {
            var __h = OnReceivedHandler;

            if (__h != null)
            {
                __h(sender, new ReceivedEventArgs(p0, p1, p2));
            }
        }
 public ReceivedEventArgs(string p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.PersistentRequest p1, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
        static void n_OnReceived_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_persistent_PersistentRequest_Lcom_aliyun_alink_linksdk_channel_core_persistent_IOnRrpcResponseHandle_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnSubscribeRrpcListener __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnSubscribeRrpcListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.PersistentRequest     p1 = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.PersistentRequest> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle p2 = (global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle)global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle> (native_p2, JniHandleOwnership.DoNotTransfer);
            __this.OnReceived(p0, p1, p2);
        }
        public unsafe void OnReceived(string p0, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.PersistentRequest p1, global::Com.Aliyun.Alink.Linksdk.Channel.Core.Persistent.IOnRrpcResponseHandle p2)
        {
            if (id_onReceived_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_persistent_PersistentRequest_Lcom_aliyun_alink_linksdk_channel_core_persistent_IOnRrpcResponseHandle_ == IntPtr.Zero)
            {
                id_onReceived_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_persistent_PersistentRequest_Lcom_aliyun_alink_linksdk_channel_core_persistent_IOnRrpcResponseHandle_ = JNIEnv.GetMethodID(class_ref, "onReceived", "(Ljava/lang/String;Lcom/aliyun/alink/linksdk/channel/core/persistent/PersistentRequest;Lcom/aliyun/alink/linksdk/channel/core/persistent/IOnRrpcResponseHandle;)V");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [3];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onReceived_Ljava_lang_String_Lcom_aliyun_alink_linksdk_channel_core_persistent_PersistentRequest_Lcom_aliyun_alink_linksdk_channel_core_persistent_IOnRrpcResponseHandle_, __args);
            JNIEnv.DeleteLocalRef(native_p0);
        }
Example #5
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);
        }