コード例 #1
0
        static void n_CloseConnection_ILjava_lang_String_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1)
        {
            global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.CloseConnection(p0, p1);
        }
コード例 #2
0
        static void n_SendFrame_Ljava_util_Collection_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var p0 = global::Android.Runtime.JavaCollection <global::Com.Clevertap.Android.Sdk.Java_websocket.Framing.IFramedata> .FromJniHandle(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.SendFrame(p0);
        }
コード例 #3
0
 static void n_SendFragmentedFrame_Lcom_clevertap_android_sdk_java_websocket_enums_Opcode_Ljava_nio_ByteBuffer_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, bool p2)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket   __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Clevertap.Android.Sdk.Java_websocket.Enums.Opcode p0     = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.Enums.Opcode> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Nio.ByteBuffer p1 = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.SendFragmentedFrame(p0, p1, p2);
 }
コード例 #4
0
        static void n_Send_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.Send(p0);
        }
コード例 #5
0
 static void n_Send_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     byte[] p0 = (byte[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(byte));
     __this.Send(p0);
     if (p0 != null)
     {
         JNIEnv.CopyArray(p0, native_p0);
     }
 }
        public override unsafe void OnWriteDemand(global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket p0)
        {
            const string __id = "onWriteDemand.(Lcom/clevertap/android/sdk/java_websocket/WebSocket;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public override unsafe void OnWebsocketError(global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket p0, global::Java.Lang.Exception p1)
        {
            const string __id = "onWebsocketError.(Lcom/clevertap/android/sdk/java_websocket/WebSocket;Ljava/lang/Exception;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)p1).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
コード例 #8
0
        public unsafe global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket CreateWebSocket(global::Com.Clevertap.Android.Sdk.Java_websocket.WebSocketAdapter p0, global::Com.Clevertap.Android.Sdk.Java_websocket.Drafts.Draft p1)
        {
            if (id_createWebSocket_Lcom_clevertap_android_sdk_java_websocket_WebSocketAdapter_Lcom_clevertap_android_sdk_java_websocket_drafts_Draft_ == IntPtr.Zero)
            {
                id_createWebSocket_Lcom_clevertap_android_sdk_java_websocket_WebSocketAdapter_Lcom_clevertap_android_sdk_java_websocket_drafts_Draft_ = JNIEnv.GetMethodID(class_ref, "createWebSocket", "(Lcom/clevertap/android/sdk/java_websocket/WebSocketAdapter;Lcom/clevertap/android/sdk/java_websocket/drafts/Draft;)Lcom/clevertap/android/sdk/java_websocket/WebSocket;");
            }
            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);
            global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __ret = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createWebSocket_Lcom_clevertap_android_sdk_java_websocket_WebSocketAdapter_Lcom_clevertap_android_sdk_java_websocket_drafts_Draft_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public override unsafe void OnWebsocketMessage(global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket p0, string p1)
        {
            const string __id      = "onWebsocketMessage.(Lcom/clevertap/android/sdk/java_websocket/WebSocket;Ljava/lang/String;)V";
            IntPtr       native_p1 = JNIEnv.NewString(p1);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue(native_p1);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
コード例 #10
0
        public unsafe global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket CreateWebSocket(global::Com.Clevertap.Android.Sdk.Java_websocket.WebSocketAdapter p0, global::System.Collections.Generic.IList <global::Com.Clevertap.Android.Sdk.Java_websocket.Drafts.Draft> p1)
        {
            if (id_createWebSocket_Lcom_clevertap_android_sdk_java_websocket_WebSocketAdapter_Ljava_util_List_ == IntPtr.Zero)
            {
                id_createWebSocket_Lcom_clevertap_android_sdk_java_websocket_WebSocketAdapter_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "createWebSocket", "(Lcom/clevertap/android/sdk/java_websocket/WebSocketAdapter;Ljava/util/List;)Lcom/clevertap/android/sdk/java_websocket/WebSocket;");
            }
            IntPtr native_p1 = global::Android.Runtime.JavaList <global::Com.Clevertap.Android.Sdk.Java_websocket.Drafts.Draft> .ToLocalJniHandle(p1);

            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue(native_p1);
            global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __ret = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createWebSocket_Lcom_clevertap_android_sdk_java_websocket_WebSocketAdapter_Ljava_util_List_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p1);
            return(__ret);
        }
        public override unsafe global::Java.Net.InetSocketAddress GetRemoteSocketAddress(global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket p0)
        {
            const string __id = "getRemoteSocketAddress.(Lcom/clevertap/android/sdk/java_websocket/WebSocket;)Ljava/net/InetSocketAddress;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Java.Net.InetSocketAddress> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
コード例 #12
0
 static void n_SendPing(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SendPing();
 }
コード例 #13
0
 static bool n_IsOpen(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsOpen);
 }
コード例 #14
0
 static void n_Send_Ljava_nio_ByteBuffer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Nio.ByteBuffer p0 = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Send(p0);
 }
コード例 #15
0
 static IntPtr n_GetResourceDescriptor(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ResourceDescriptor));
 }
コード例 #16
0
 static IntPtr n_GetRemoteSocketAddress(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.RemoteSocketAddress));
 }
コード例 #17
0
 static void n_SendFrame_Lcom_clevertap_android_sdk_java_websocket_framing_Framedata_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket         __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Clevertap.Android.Sdk.Java_websocket.Framing.IFramedata p0     = (global::Com.Clevertap.Android.Sdk.Java_websocket.Framing.IFramedata)global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.Framing.IFramedata> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SendFrame(p0);
 }
コード例 #18
0
 static void n_SetAttachment_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Com.Clevertap.Android.Sdk.Java_websocket.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Attachment = p0;
 }