コード例 #1
0
        static IntPtr n_InternalCache_Lokhttp3_OkHttpClient_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            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);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.InternalCache(p0));

            return(__ret);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public unsafe void Connect(global::Okhttp3.OkHttpClient client)
        {
            const string __id = "connect.(Lokhttp3/OkHttpClient;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
コード例 #4
0
        public override unsafe global::Okhttp3.Internal.IInternalCache InternalCache(global::Okhttp3.OkHttpClient p0)
        {
            const string __id = "internalCache.(Lokhttp3/OkHttpClient;)Lokhttp3/internal/InternalCache;";

            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::Okhttp3.Internal.IInternalCache> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
コード例 #5
0
        public unsafe global::Okhttp3.OkUrlFactory SetClient(global::Okhttp3.OkHttpClient client)
        {
            const string __id = "setClient.(Lokhttp3/OkHttpClient;)Lokhttp3/OkUrlFactory;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.OkUrlFactory> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
コード例 #6
0
        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 {
            }
        }
        public unsafe global::Okhttp3.Internal.Http.IHttpStream NewStream(global::Okhttp3.OkHttpClient client, bool doExtensiveHealthChecks)
        {
            const string __id = "newStream.(Lokhttp3/OkHttpClient;Z)Lokhttp3/internal/http/HttpStream;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [1] = new JniArgumentValue(doExtensiveHealthChecks);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.IHttpStream> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public unsafe global::Okhttp3.Internal.Http.IHttpCodec NewCodec(global::Okhttp3.OkHttpClient client, global::Okhttp3.IInterceptorChain chain, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation)
        {
            const string __id = "newCodec.(Lokhttp3/OkHttpClient;Lokhttp3/Interceptor$Chain;Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/http/HttpCodec;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [1] = new JniArgumentValue((chain == null) ? IntPtr.Zero : ((global::Java.Lang.Object)chain).Handle);
                __args [2] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.IHttpCodec> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public unsafe ConnectInterceptor(global::Okhttp3.OkHttpClient client)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/OkHttpClient;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
コード例 #10
0
        public unsafe Http2xStream(global::Okhttp3.OkHttpClient client, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation, global::Okhttp3.Internal.Framed.FramedConnection framedConnection)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/framed/FramedConnection;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [1] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [2] = new JniArgumentValue((framedConnection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)framedConnection).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
        public unsafe OkHttpURLConnection(global::Java.Net.URL url, global::Okhttp3.OkHttpClient client, global::Okhttp3.Internal.IURLFilter urlFilter)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/net/URL;Lokhttp3/OkHttpClient;Lokhttp3/internal/URLFilter;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((url == null) ? IntPtr.Zero : ((global::Java.Lang.Object)url).Handle);
                __args [1] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [2] = new JniArgumentValue((urlFilter == null) ? IntPtr.Zero : ((global::Java.Lang.Object)urlFilter).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
コード例 #12
0
 public abstract global::Okhttp3.ICall NewWebSocketCall(global::Okhttp3.OkHttpClient p0, global::Okhttp3.Request p1);
コード例 #13
0
 public abstract global::Okhttp3.Internal.IInternalCache InternalCache(global::Okhttp3.OkHttpClient p0);
コード例 #14
0
        public static unsafe global::Com.Facebook.Imagepipeline.Core.ImagePipelineConfig.Builder NewBuilder(global::Android.Content.Context context, global::Okhttp3.OkHttpClient okHttpClient)
        {
            const string __id = "newBuilder.(Landroid/content/Context;Lokhttp3/OkHttpClient;)Lcom/facebook/imagepipeline/core/ImagePipelineConfig$Builder;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object)context).Handle);
                __args [1] = new JniArgumentValue((okHttpClient == null) ? IntPtr.Zero : ((global::Java.Lang.Object)okHttpClient).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Facebook.Imagepipeline.Core.ImagePipelineConfig.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }