static void n_PostResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::MoPub.Volley.IResponseDelivery __this = global::Java.Lang.Object.GetObject <global::MoPub.Volley.IResponseDelivery> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::MoPub.Volley.Request           p0     = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::MoPub.Volley.Response          p1     = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Response> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.PostResponse(p0, p1);
 }
 static void n_PostResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
 {
     global::MoPub.Volley.ExecutorDelivery __this = global::Java.Lang.Object.GetObject <global::MoPub.Volley.ExecutorDelivery> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::MoPub.Volley.Request          p0     = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::MoPub.Volley.Response         p1     = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Response> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.IRunnable           p2     = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.PostResponse(p0, p1, p2);
 }
        public unsafe void PostResponse(global::MoPub.Volley.Request p0, global::MoPub.Volley.Response p1)
        {
            if (id_postResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_ == IntPtr.Zero)
            {
                id_postResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_ = JNIEnv.GetMethodID(class_ref, "postResponse", "(Lcom/mopub/volley/Request;Lcom/mopub/volley/Response;)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_postResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_, __args);
        }
Exemplo n.º 4
0
 public static unsafe global::MoPub.Volley.Response Error(global::MoPub.Volley.VolleyError p0)
 {
     if (id_error_Lcom_mopub_volley_VolleyError_ == IntPtr.Zero)
     {
         id_error_Lcom_mopub_volley_VolleyError_ = JNIEnv.GetStaticMethodID(class_ref, "error", "(Lcom/mopub/volley/VolleyError;)Lcom/mopub/volley/Response;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::MoPub.Volley.Response __ret = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Response> (JNIEnv.CallStaticObjectMethod(class_ref, id_error_Lcom_mopub_volley_VolleyError_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Exemplo n.º 5
0
        public static unsafe global::MoPub.Volley.Response Success(global::Java.Lang.Object p0, global::MoPub.Volley.CacheEntry p1)
        {
            if (id_success_Ljava_lang_Object_Lcom_mopub_volley_Cache_Entry_ == IntPtr.Zero)
            {
                id_success_Ljava_lang_Object_Lcom_mopub_volley_Cache_Entry_ = JNIEnv.GetStaticMethodID(class_ref, "success", "(Ljava/lang/Object;Lcom/mopub/volley/Cache$Entry;)Lcom/mopub/volley/Response;");
            }
            IntPtr native_p0 = JNIEnv.ToLocalJniHandle(p0);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                global::MoPub.Volley.Response __ret = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Response> (JNIEnv.CallStaticObjectMethod(class_ref, id_success_Ljava_lang_Object_Lcom_mopub_volley_Cache_Entry_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public virtual unsafe void PostResponse(global::MoPub.Volley.Request p0, global::MoPub.Volley.Response p1)
        {
            if (id_postResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_ == IntPtr.Zero)
            {
                id_postResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_ = JNIEnv.GetMethodID(class_ref, "postResponse", "(Lcom/mopub/volley/Request;Lcom/mopub/volley/Response;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_postResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "postResponse", "(Lcom/mopub/volley/Request;Lcom/mopub/volley/Response;)V"), __args);
                }
            } finally {
            }
        }
Exemplo n.º 7
0
 static bool n_IsSuccess(IntPtr jnienv, IntPtr native__this)
 {
     global::MoPub.Volley.Response __this = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Response> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsSuccess);
 }
            public unsafe ResponseDeliveryRunnable(global::MoPub.Volley.ExecutorDelivery __self, global::MoPub.Volley.Request p1, global::MoPub.Volley.Response p2, global::Java.Lang.IRunnable p3)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [4];
                    __args [0] = new JValue(__self);
                    __args [1] = new JValue(p1);
                    __args [2] = new JValue(p2);
                    __args [3] = new JValue(p3);
                    if (((object)this).GetType() != typeof(ResponseDeliveryRunnable))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lcom/mopub/volley/Request;Lcom/mopub/volley/Response;Ljava/lang/Runnable;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lcom/mopub/volley/Request;Lcom/mopub/volley/Response;Ljava/lang/Runnable;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_mopub_volley_ExecutorDelivery_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_Ljava_lang_Runnable_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_mopub_volley_ExecutorDelivery_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mopub/volley/ExecutorDelivery;Lcom/mopub/volley/Request;Lcom/mopub/volley/Response;Ljava/lang/Runnable;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mopub_volley_ExecutorDelivery_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_Ljava_lang_Runnable_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mopub_volley_ExecutorDelivery_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_Ljava_lang_Runnable_, __args);
                } finally {
                }
            }