Exemple #1
0
        public HttpRequestAdapter(global::Org.Apache.Http.Client.Methods.IHttpUriRequest p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            if (GetType() != typeof(HttpRequestAdapter))
            {
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/apache/http/client/methods/HttpUriRequest;)V", new JValue(p0)),
                    JniHandleOwnership.TransferLocalRef);
                global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lorg/apache/http/client/methods/HttpUriRequest;)V", new JValue(p0));
                return;
            }

            if (id_ctor_Lorg_apache_http_client_methods_HttpUriRequest_ == IntPtr.Zero)
            {
                id_ctor_Lorg_apache_http_client_methods_HttpUriRequest_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/apache/http/client/methods/HttpUriRequest;)V");
            }
            SetHandle(
                global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_apache_http_client_methods_HttpUriRequest_, new JValue(p0)),
                JniHandleOwnership.TransferLocalRef);
            JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lorg_apache_http_client_methods_HttpUriRequest_, new JValue(p0));
        }
        public virtual void SignRequest(global::Org.Apache.Http.Client.Methods.IHttpUriRequest p0)
        {
            if (id_signRequest_Lorg_apache_http_client_methods_HttpUriRequest_ == IntPtr.Zero)
            {
                id_signRequest_Lorg_apache_http_client_methods_HttpUriRequest_ = JNIEnv.GetMethodID(class_ref, "signRequest", "(Lorg/apache/http/client/methods/HttpUriRequest;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_signRequest_Lorg_apache_http_client_methods_HttpUriRequest_, new JValue(p0));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "signRequest", "(Lorg/apache/http/client/methods/HttpUriRequest;)V"), new JValue(p0));
            }
        }
Exemple #3
0
 public T Execute <T>(global::Org.Apache.Http.Client.Methods.IHttpUriRequest target, global::Org.Apache.Http.Client.IResponseHandler <T> request, global::Org.Apache.Http.Protocol.IHttpContext context)                       /* MethodBuilder.Create */
 {
     return(default(T));
 }
Exemple #4
0
 public global::Org.Apache.Http.IHttpResponse Execute(global::Org.Apache.Http.Client.Methods.IHttpUriRequest request, global::Org.Apache.Http.Protocol.IHttpContext context)                         /* MethodBuilder.Create */
 {
     return(default(global::Org.Apache.Http.IHttpResponse));
 }
 static void n_SignRequest_Lorg_apache_http_client_methods_HttpUriRequest_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Parse.Twitter.Twitter __this = global::Java.Lang.Object.GetObject <global::Com.Parse.Twitter.Twitter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Apache.Http.Client.Methods.IHttpUriRequest p0 = (global::Org.Apache.Http.Client.Methods.IHttpUriRequest)global::Java.Lang.Object.GetObject <global::Org.Apache.Http.Client.Methods.IHttpUriRequest> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SignRequest(p0);
 }
 public T Execute <T>(global::Org.Apache.Http.Client.Methods.IHttpUriRequest httpUriRequest, global::Org.Apache.Http.Client.IResponseHandler <T> responseHandler)                       /* MethodBuilder.Create */
 {
     return(default(T));
 }