static bool n_Close_ILjava_lang_String_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1) { global::Okhttp3.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer); bool __ret = __this.Close(p0, p1); return(__ret); }
static void n_OnClosed_Lokhttp3_WebSocket_ILjava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_webSocket, int code, IntPtr native_reason) { global::Okhttp3.WebSocketListener __this = global::Java.Lang.Object.GetObject <global::Okhttp3.WebSocketListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okhttp3.IWebSocket webSocket = (global::Okhttp3.IWebSocket)global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (native_webSocket, JniHandleOwnership.DoNotTransfer); string reason = JNIEnv.GetString(native_reason, JniHandleOwnership.DoNotTransfer); __this.OnClosed(webSocket, code, reason); }
static void n_OnMessage_Lokhttp3_WebSocket_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_webSocket, IntPtr native_text) { global::Okhttp3.WebSocketListener __this = global::Java.Lang.Object.GetObject <global::Okhttp3.WebSocketListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okhttp3.IWebSocket webSocket = (global::Okhttp3.IWebSocket)global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (native_webSocket, JniHandleOwnership.DoNotTransfer); string text = JNIEnv.GetString(native_text, JniHandleOwnership.DoNotTransfer); __this.OnMessage(webSocket, text); }
static void n_OnFailure_Lokhttp3_WebSocket_Ljava_lang_Throwable_Lokhttp3_Response_(IntPtr jnienv, IntPtr native__this, IntPtr native_webSocket, IntPtr native_t, IntPtr native_response) { global::Okhttp3.WebSocketListener __this = global::Java.Lang.Object.GetObject <global::Okhttp3.WebSocketListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okhttp3.IWebSocket webSocket = (global::Okhttp3.IWebSocket)global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (native_webSocket, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Throwable t = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_t, JniHandleOwnership.DoNotTransfer); global::Okhttp3.Response response = global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (native_response, JniHandleOwnership.DoNotTransfer); __this.OnFailure(webSocket, t, response); }
static bool n_Send_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Okhttp3.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.Send(p0); return(__ret); }
public virtual unsafe void OnOpen(global::Okhttp3.IWebSocket webSocket, global::Okhttp3.Response response) { const string __id = "onOpen.(Lokhttp3/WebSocket;Lokhttp3/Response;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((webSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)webSocket).Handle); __args [1] = new JniArgumentValue((response == null) ? IntPtr.Zero : ((global::Java.Lang.Object)response).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public virtual unsafe void OnMessage(global::Okhttp3.IWebSocket webSocket, global::Okio.ByteString bytes) { const string __id = "onMessage.(Lokhttp3/WebSocket;Lokio/ByteString;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((webSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)webSocket).Handle); __args [1] = new JniArgumentValue((bytes == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bytes).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public unsafe global::Okhttp3.IWebSocket NewWebSocket(global::Okhttp3.Request p0, global::Okhttp3.WebSocketListener p1) { if (id_newWebSocket_Lokhttp3_Request_Lokhttp3_WebSocketListener_ == IntPtr.Zero) { id_newWebSocket_Lokhttp3_Request_Lokhttp3_WebSocketListener_ = JNIEnv.GetMethodID(class_ref, "newWebSocket", "(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/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::Okhttp3.IWebSocket __ret = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_newWebSocket_Lokhttp3_Request_Lokhttp3_WebSocketListener_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
public virtual unsafe void OnMessage(global::Okhttp3.IWebSocket webSocket, string text) { const string __id = "onMessage.(Lokhttp3/WebSocket;Ljava/lang/String;)V"; IntPtr native_text = JNIEnv.NewString(text); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((webSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)webSocket).Handle); __args [1] = new JniArgumentValue(native_text); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { JNIEnv.DeleteLocalRef(native_text); } }
public virtual unsafe void OnClosed(global::Okhttp3.IWebSocket webSocket, int code, string reason) { const string __id = "onClosed.(Lokhttp3/WebSocket;ILjava/lang/String;)V"; IntPtr native_reason = JNIEnv.NewString(reason); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((webSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)webSocket).Handle); __args [1] = new JniArgumentValue(code); __args [2] = new JniArgumentValue(native_reason); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { JNIEnv.DeleteLocalRef(native_reason); } }
static IntPtr n_Request(IntPtr jnienv, IntPtr native__this) { global::Okhttp3.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.Request())); }
static long n_QueueSize(IntPtr jnienv, IntPtr native__this) { global::Okhttp3.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.QueueSize()); }
static void n_Cancel(IntPtr jnienv, IntPtr native__this) { global::Okhttp3.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Cancel(); }