static bool n_OnResponseReceived_Lcom_parse_signpost_http_HttpRequest_Lcom_parse_signpost_http_HttpResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Parse.Signpost.IOAuthProviderListener __this = global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.IOAuthProviderListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Parse.Signpost.Http.IHttpRequest      p0     = (global::Com.Parse.Signpost.Http.IHttpRequest)global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.Http.IHttpRequest> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Com.Parse.Signpost.Http.IHttpResponse     p1     = (global::Com.Parse.Signpost.Http.IHttpResponse)global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.Http.IHttpResponse> (native_p1, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.OnResponseReceived(p0, p1);

            return(__ret);
        }
Пример #2
0
 static IntPtr n_GetContent(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Parse.Signpost.Http.IHttpResponse __this = global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.Http.IHttpResponse> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(__this.Content));
 }
Пример #3
0
 static IntPtr n_Unwrap(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Parse.Signpost.Http.IHttpResponse __this = global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.Http.IHttpResponse> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Unwrap()));
 }
Пример #4
0
 static int n_GetStatusCode(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Parse.Signpost.Http.IHttpResponse __this = global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.Http.IHttpResponse> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.StatusCode);
 }
Пример #5
0
 static IntPtr n_GetReasonPhrase(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Parse.Signpost.Http.IHttpResponse __this = global::Java.Lang.Object.GetObject <global::Com.Parse.Signpost.Http.IHttpResponse> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ReasonPhrase));
 }
        public bool OnResponseReceived(global::Com.Parse.Signpost.Http.IHttpRequest p0, global::Com.Parse.Signpost.Http.IHttpResponse p1)
        {
            if (id_onResponseReceived_Lcom_parse_signpost_http_HttpRequest_Lcom_parse_signpost_http_HttpResponse_ == IntPtr.Zero)
            {
                id_onResponseReceived_Lcom_parse_signpost_http_HttpRequest_Lcom_parse_signpost_http_HttpResponse_ = JNIEnv.GetMethodID(class_ref, "onResponseReceived", "(Lcom/parse/signpost/http/HttpRequest;Lcom/parse/signpost/http/HttpResponse;)Z");
            }
            bool __ret = JNIEnv.CallBooleanMethod(Handle, id_onResponseReceived_Lcom_parse_signpost_http_HttpRequest_Lcom_parse_signpost_http_HttpResponse_, new JValue(p0), new JValue(p1));

            return(__ret);
        }
#pragma warning restore 0649

        public bool OnResponseReceived(global::Com.Parse.Signpost.Http.IHttpRequest p0, global::Com.Parse.Signpost.Http.IHttpResponse p1)
        {
            var __h = OnResponseReceivedHandler;

            if (__h == null)
            {
                return(false);
            }
            var __e = new ResponseReceivedEventArgs(true, p0, p1);

            __h(sender, __e);
            return(__e.Handled);
        }
 public ResponseReceivedEventArgs(bool handled, global::Com.Parse.Signpost.Http.IHttpRequest p0, global::Com.Parse.Signpost.Http.IHttpResponse p1)
 {
     this.handled = handled;
     this.p0      = p0;
     this.p1      = p1;
 }