static void n_SendSubscribe_ILjava_lang_Object_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, int requestId, IntPtr native_options, IntPtr native_topicUri)
        {
            global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object options = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_options, JniHandleOwnership.DoNotTransfer);
            string topicUri = JNIEnv.GetString(native_topicUri, JniHandleOwnership.DoNotTransfer);

            __this.SendSubscribe(requestId, options, topicUri);
        }
        static void n_SendCall_ILjava_lang_Object_Ljava_lang_String_Ljava_util_List_(IntPtr jnienv, IntPtr native__this, int requestId, IntPtr native_options, IntPtr native_procedureUri, IntPtr native_arguments)
        {
            global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object options = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_options, JniHandleOwnership.DoNotTransfer);
            string procedureUri = JNIEnv.GetString(native_procedureUri, JniHandleOwnership.DoNotTransfer);
            var    arguments    = global::Android.Runtime.JavaList <global::Java.Lang.Object> .FromJniHandle(native_arguments, JniHandleOwnership.DoNotTransfer);

            __this.SendCall(requestId, options, procedureUri, arguments);
        }
 static void n_OnData_arrayBI(IntPtr jnienv, IntPtr native__this, IntPtr native_data, int length)
 {
     global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     byte[] data = (byte[])JNIEnv.GetArray(native_data, JniHandleOwnership.DoNotTransfer, typeof(byte));
     __this.OnData(data, length);
     if (data != null)
     {
         JNIEnv.CopyArray(data, native_data);
     }
 }
Example #4
0
        public unsafe RemoteWampClient(global::Com.Spotify.Protocol.Client.AppProtocolCommunicator communicator, global::Com.Spotify.Protocol.Client.WampCallsOrchestrator wampCallsOrchestrator)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/spotify/protocol/client/AppProtocolCommunicator;Lcom/spotify/protocol/client/WampCallsOrchestrator;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((communicator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)communicator).Handle);
                __args [1] = new JniArgumentValue((wampCallsOrchestrator == null) ? IntPtr.Zero : ((global::Java.Lang.Object)wampCallsOrchestrator).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
 static void n_SetMessageReceiver_Lcom_spotify_protocol_WampClient_Receiver_(IntPtr jnienv, IntPtr native__this, IntPtr native_receiver)
 {
     global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this   = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Spotify.Protocol.IWampClientReceiver            receiver = (global::Com.Spotify.Protocol.IWampClientReceiver)global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.IWampClientReceiver> (native_receiver, JniHandleOwnership.DoNotTransfer);
     __this.SetMessageReceiver(receiver);
 }
 static void n_SendUnsubscribe_II(IntPtr jnienv, IntPtr native__this, int requestId, int subscriptionId)
 {
     global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SendUnsubscribe(requestId, subscriptionId);
 }
 static void n_SendHello(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SendHello();
 }
 static void n_SendCancel_ILjava_lang_Object_(IntPtr jnienv, IntPtr native__this, int requestId, IntPtr native_options)
 {
     global::Com.Spotify.Protocol.Client.AppProtocolCommunicator __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.AppProtocolCommunicator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object options = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_options, JniHandleOwnership.DoNotTransfer);
     __this.SendCancel(requestId, options);
 }