public virtual unsafe void SetMessageReceiver(global::Com.Spotify.Protocol.IWampClientReceiver receiver)
        {
            const string __id = "setMessageReceiver.(Lcom/spotify/protocol/WampClient$Receiver;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((receiver == null) ? IntPtr.Zero : ((global::Java.Lang.Object)receiver).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__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_RemoveReceiver_Lcom_spotify_protocol_WampClient_Receiver_(IntPtr jnienv, IntPtr native__this, IntPtr native_receiver)
 {
     global::Com.Spotify.Protocol.Client.WampRouterImpl __this   = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.WampRouterImpl> (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.RemoveReceiver(receiver);
 }