コード例 #1
0
        public unsafe global::Okhttp3.Internal.Http.ICacheRequest Put(global::Okhttp3.Response p0)
        {
            if (id_put_Lokhttp3_Response_ == IntPtr.Zero)
            {
                id_put_Lokhttp3_Response_ = JNIEnv.GetMethodID(class_ref, "put", "(Lokhttp3/Response;)Lokhttp3/internal/http/CacheRequest;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Okhttp3.Internal.Http.ICacheRequest __ret = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.ICacheRequest> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_put_Lokhttp3_Response_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
コード例 #2
0
 static void n_Abort(IntPtr jnienv, IntPtr native__this)
 {
     global::Okhttp3.Internal.Http.ICacheRequest __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.ICacheRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Abort();
 }