static IntPtr n_Request_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_request)
            {
                global::Okhttp3.Response.Builder __this  = global::Java.Lang.Object.GetObject <global::Okhttp3.Response.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Okhttp3.Request          request = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_request, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Request(request));

                return(__ret);
            }
Ejemplo n.º 2
0
        static IntPtr n_Get_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Okhttp3.Internal.IInternalCache __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.IInternalCache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Request p0 = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Get(p0));

            return(__ret);
        }
        static IntPtr n_NewCall_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Okhttp3.ICallFactory __this = global::Java.Lang.Object.GetObject <global::Okhttp3.ICallFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Request      p0     = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewCall(p0));

            return(__ret);
        }
Ejemplo n.º 4
0
            static IntPtr n_Proceed_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_request)
            {
                global::Okhttp3.Internal.Http.HttpEngine.NetworkInterceptorChain __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.HttpEngine.NetworkInterceptorChain> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Okhttp3.Request request = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_request, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Proceed(request));

                return(__ret);
            }
Ejemplo n.º 5
0
        static IntPtr n_CreateRequestBody_Lokhttp3_Request_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1)
        {
            global::Okhttp3.Internal.Http.IHttpCodec __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.IHttpCodec> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Request p0 = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.CreateRequestBody(p0, p1));

            return(__ret);
        }
Ejemplo n.º 6
0
 static void n_FetchWithRequest_Lcom_facebook_imagepipeline_backends_okhttp3_OkHttpNetworkFetcher_OkHttpNetworkFetchState_Lcom_facebook_imagepipeline_producers_NetworkFetcher_Callback_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_fetchState, IntPtr native__callback, IntPtr native_request)
 {
     global::Com.Facebook.Imagepipeline.Backends.Okhttp3.OkHttpNetworkFetcher __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Imagepipeline.Backends.Okhttp3.OkHttpNetworkFetcher> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Imagepipeline.Backends.Okhttp3.OkHttpNetworkFetcher.OkHttpNetworkFetchState fetchState = global::Java.Lang.Object.GetObject <global::Com.Facebook.Imagepipeline.Backends.Okhttp3.OkHttpNetworkFetcher.OkHttpNetworkFetchState> (native_fetchState, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Imagepipeline.Producers.INetworkFetcherCallback @callback = (global::Com.Facebook.Imagepipeline.Producers.INetworkFetcherCallback)global::Java.Lang.Object.GetObject <global::Com.Facebook.Imagepipeline.Producers.INetworkFetcherCallback> (native__callback, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.Request request = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_request, JniHandleOwnership.DoNotTransfer);
     __this.FetchWithRequest(fetchState, @callback, request);
 }
        static IntPtr n_NewWebSocketCall_Lokhttp3_OkHttpClient_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Okhttp3.Internal.Internal __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Internal> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.OkHttpClient      p0     = global::Java.Lang.Object.GetObject <global::Okhttp3.OkHttpClient> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Request           p1     = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewWebSocketCall(p0, p1));

            return(__ret);
        }
        static IntPtr n_NewWebSocket_Lokhttp3_Request_Lokhttp3_WebSocketListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Okhttp3.IWebSocketFactory __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocketFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Request           p0     = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.WebSocketListener p1     = global::Java.Lang.Object.GetObject <global::Okhttp3.WebSocketListener> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewWebSocket(p0, p1));

            return(__ret);
        }
Ejemplo n.º 9
0
        public unsafe void Remove(global::Okhttp3.Request p0)
        {
            if (id_remove_Lokhttp3_Request_ == IntPtr.Zero)
            {
                id_remove_Lokhttp3_Request_ = JNIEnv.GetMethodID(class_ref, "remove", "(Lokhttp3/Request;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_remove_Lokhttp3_Request_, __args);
        }
Ejemplo n.º 10
0
        public unsafe void WriteRequestHeaders(global::Okhttp3.Request request)
        {
            const string __id = "writeRequestHeaders.(Lokhttp3/Request;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 11
0
        public static unsafe long ContentLength(global::Okhttp3.Request request)
        {
            const string __id = "contentLength.(Lokhttp3/Request;)J";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __rm = _members.StaticMethods.InvokeInt64Method(__id, __args);
                return(__rm);
            } finally {
            }
        }
Ejemplo n.º 12
0
            public virtual unsafe global::Okhttp3.Response Proceed(global::Okhttp3.Request request)
            {
                const string __id = "proceed.(Lokhttp3/Request;)Lokhttp3/Response;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }
Ejemplo n.º 13
0
        public unsafe global::Okhttp3.Response Get(global::Okhttp3.Request p0)
        {
            if (id_get_Lokhttp3_Request_ == IntPtr.Zero)
            {
                id_get_Lokhttp3_Request_ = JNIEnv.GetMethodID(class_ref, "get", "(Lokhttp3/Request;)Lokhttp3/Response;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Okhttp3.Response __ret = global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_get_Lokhttp3_Request_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public static unsafe bool IsCacheable(global::Okhttp3.Response response, global::Okhttp3.Request request)
        {
            const string __id = "isCacheable.(Lokhttp3/Response;Lokhttp3/Request;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((response == null) ? IntPtr.Zero : ((global::Java.Lang.Object)response).Handle);
                __args [1] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
            }
        }
Ejemplo n.º 15
0
        public unsafe global::Okhttp3.Request Authenticate(global::Okhttp3.Route p0, global::Okhttp3.Response p1)
        {
            if (id_authenticate_Lokhttp3_Route_Lokhttp3_Response_ == IntPtr.Zero)
            {
                id_authenticate_Lokhttp3_Route_Lokhttp3_Response_ = JNIEnv.GetMethodID(class_ref, "authenticate", "(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;");
            }
            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.Request __ret = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_authenticate_Lokhttp3_Route_Lokhttp3_Response_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Ejemplo n.º 16
0
        public unsafe global::Okio.ISink CreateRequestBody(global::Okhttp3.Request request, long contentLength)
        {
            const string __id = "createRequestBody.(Lokhttp3/Request;J)Lokio/Sink;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue(contentLength);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okio.ISink> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Ejemplo n.º 17
0
        public static unsafe string Get(global::Okhttp3.Request request, global::Java.Net.Proxy.Type proxyType)
        {
            const string __id = "get.(Lokhttp3/Request;Ljava/net/Proxy$Type;)Ljava/lang/String;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue((proxyType == null) ? IntPtr.Zero : ((global::Java.Lang.Object)proxyType).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(JNIEnv.GetString(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Ejemplo n.º 18
0
        public unsafe global::Okio.ISink CreateRequestBody(global::Okhttp3.Request p0, long p1)
        {
            if (id_createRequestBody_Lokhttp3_Request_J == IntPtr.Zero)
            {
                id_createRequestBody_Lokhttp3_Request_J = JNIEnv.GetMethodID(class_ref, "createRequestBody", "(Lokhttp3/Request;J)Lokio/Sink;");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue(p1);
            global::Okio.ISink __ret = global::Java.Lang.Object.GetObject <global::Okio.ISink> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createRequestBody_Lokhttp3_Request_J, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        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 unsafe global::Okhttp3.Response Proceed(global::Okhttp3.Request request, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation, global::Okhttp3.Internal.Http.IHttpStream httpStream, global::Okhttp3.IConnection connection)
        {
            const string __id = "proceed.(Lokhttp3/Request;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http/HttpStream;Lokhttp3/Connection;)Lokhttp3/Response;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [2] = new JniArgumentValue((httpStream == null) ? IntPtr.Zero : ((global::Java.Lang.Object)httpStream).Handle);
                __args [3] = new JniArgumentValue((connection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)connection).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
            public unsafe Factory(long nowMillis, global::Okhttp3.Request request, global::Okhttp3.Response cacheResponse)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                const string __id = "(JLokhttp3/Request;Lokhttp3/Response;)V";

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

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                    __args [0] = new JniArgumentValue(nowMillis);
                    __args [1] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                    __args [2] = new JniArgumentValue((cacheResponse == null) ? IntPtr.Zero : ((global::Java.Lang.Object)cacheResponse).Handle);
                    var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                    SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                    _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
                } finally {
                }
            }
Ejemplo n.º 22
0
        public unsafe RealWebSocket(global::Okhttp3.Request request, global::Okhttp3.WebSocketListener listener, global::Java.Util.Random random, long pingIntervalMillis)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/Request;Lokhttp3/WebSocketListener;Ljava/util/Random;J)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle);
                __args [2] = new JniArgumentValue((random == null) ? IntPtr.Zero : ((global::Java.Lang.Object)random).Handle);
                __args [3] = new JniArgumentValue(pingIntervalMillis);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 23
0
        public static unsafe global::System.Collections.Generic.IList <global::Okhttp3.Internal.Http2.Header> Http2HeadersList(global::Okhttp3.Request request)
        {
            const string __id = "http2HeadersList.(Lokhttp3/Request;)Ljava/util/List;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Android.Runtime.JavaList <global::Okhttp3.Internal.Http2.Header> .FromJniHandle(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Ejemplo n.º 24
0
 static void n_Remove_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Okhttp3.Internal.IInternalCache __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.IInternalCache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.Request p0 = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Remove(p0);
 }
 public abstract global::Okhttp3.ICall NewWebSocketCall(global::Okhttp3.OkHttpClient p0, global::Okhttp3.Request p1);
        public unsafe RealInterceptorChain(global::System.Collections.Generic.IList <global::Okhttp3.IInterceptor> interceptors, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation, global::Okhttp3.Internal.Http.IHttpStream httpStream, global::Okhttp3.IConnection connection, int index, global::Okhttp3.Request request)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/util/List;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http/HttpStream;Lokhttp3/Connection;ILokhttp3/Request;)V";

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

            IntPtr native_interceptors = global::Android.Runtime.JavaList <global::Okhttp3.IInterceptor> .ToLocalJniHandle(interceptors);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue(native_interceptors);
                __args [1] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [2] = new JniArgumentValue((httpStream == null) ? IntPtr.Zero : ((global::Java.Lang.Object)httpStream).Handle);
                __args [3] = new JniArgumentValue((connection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)connection).Handle);
                __args [4] = new JniArgumentValue(index);
                __args [5] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_interceptors);
            }
        }
Ejemplo n.º 27
0
        protected virtual unsafe void FetchWithRequest(global::Com.Facebook.Imagepipeline.Backends.Okhttp3.OkHttpNetworkFetcher.OkHttpNetworkFetchState fetchState, global::Com.Facebook.Imagepipeline.Producers.INetworkFetcherCallback @callback, global::Okhttp3.Request request)
        {
            const string __id = "fetchWithRequest.(Lcom/facebook/imagepipeline/backends/okhttp3/OkHttpNetworkFetcher$OkHttpNetworkFetchState;Lcom/facebook/imagepipeline/producers/NetworkFetcher$Callback;Lokhttp3/Request;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((fetchState == null) ? IntPtr.Zero : ((global::Java.Lang.Object)fetchState).Handle);
                __args [1] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle);
                __args [2] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public static unsafe bool VaryMatches(global::Okhttp3.Response cachedResponse, global::Okhttp3.Headers cachedRequest, global::Okhttp3.Request newRequest)
        {
            const string __id = "varyMatches.(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((cachedResponse == null) ? IntPtr.Zero : ((global::Java.Lang.Object)cachedResponse).Handle);
                __args [1] = new JniArgumentValue((cachedRequest == null) ? IntPtr.Zero : ((global::Java.Lang.Object)cachedRequest).Handle);
                __args [2] = new JniArgumentValue((newRequest == null) ? IntPtr.Zero : ((global::Java.Lang.Object)newRequest).Handle);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
            }
        }
Ejemplo n.º 29
0
 static void n_WriteRequestHeaders_Lokhttp3_Request_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Okhttp3.Internal.Http.IHttpCodec __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.IHttpCodec> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Okhttp3.Request p0 = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.WriteRequestHeaders(p0);
 }
        public override unsafe global::Okhttp3.ICall NewWebSocketCall(global::Okhttp3.OkHttpClient p0, global::Okhttp3.Request p1)
        {
            const string __id = "newWebSocketCall.(Lokhttp3/OkHttpClient;Lokhttp3/Request;)Lokhttp3/Call;";

            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.Object)p1).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.ICall> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }