public unsafe ApiCreaNonceVerificaCartaRequest(string p0, global::IT.Icbpi.XPaySDK.Models.Card p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(ApiCreaNonceVerificaCartaRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Lit/icbpi/XPaySDK/Models/Card;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Lit/icbpi/XPaySDK/Models/Card;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Lit/icbpi/XPaySDK/Models/Card;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Exemplo n.º 2
0
        public unsafe ApiPagaMPIRequest(string p0, string p1, global::IT.Icbpi.XPaySDK.Models.Card p2, long p3, int p4, string p5, string p6, string p7, string p8)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p5 = JNIEnv.NewString(p5);
            IntPtr native_p6 = JNIEnv.NewString(p6);
            IntPtr native_p7 = JNIEnv.NewString(p7);
            IntPtr native_p8 = JNIEnv.NewString(p8);

            try {
                JValue *__args = stackalloc JValue [9];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(native_p5);
                __args [6] = new JValue(native_p6);
                __args [7] = new JValue(native_p7);
                __args [8] = new JValue(native_p8);
                if (((object)this).GetType() != typeof(ApiPagaMPIRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Lit/icbpi/XPaySDK/Models/Card;JILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Lit/icbpi/XPaySDK/Models/Card;JILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_JILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_JILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Lit/icbpi/XPaySDK/Models/Card;JILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_JILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_Card_JILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p5);
                JNIEnv.DeleteLocalRef(native_p6);
                JNIEnv.DeleteLocalRef(native_p7);
                JNIEnv.DeleteLocalRef(native_p8);
            }
        }
 static IntPtr n_GetCvc(IntPtr jnienv, IntPtr native__this)
 {
     global::IT.Icbpi.XPaySDK.Models.Card __this = global::Java.Lang.Object.GetObject <global::IT.Icbpi.XPaySDK.Models.Card> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.Cvc));
 }
 static bool n_IsValid(IntPtr jnienv, IntPtr native__this)
 {
     global::IT.Icbpi.XPaySDK.Models.Card __this = global::Java.Lang.Object.GetObject <global::IT.Icbpi.XPaySDK.Models.Card> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsValid);
 }