Example #1
0
        public unsafe ApiContrattoDaPOSFisicoRequest(string p0, global::IT.Icbpi.XPaySDK.Models.WebApi.Requests.GestioneContratti.ContractPOS 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(ApiContrattoDaPOSFisicoRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Lit/icbpi/XPaySDK/Models/WebApi/Requests/GestioneContratti/ContractPOS;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Lit/icbpi/XPaySDK/Models/WebApi/Requests/GestioneContratti/ContractPOS;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_WebApi_Requests_GestioneContratti_ContractPOS_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_WebApi_Requests_GestioneContratti_ContractPOS_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Lit/icbpi/XPaySDK/Models/WebApi/Requests/GestioneContratti/ContractPOS;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_WebApi_Requests_GestioneContratti_ContractPOS_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Lit_icbpi_XPaySDK_Models_WebApi_Requests_GestioneContratti_ContractPOS_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
 static long n_GetAmount(IntPtr jnienv, IntPtr native__this)
 {
     global::IT.Icbpi.XPaySDK.Models.WebApi.Requests.GestioneContratti.ContractPOS __this = global::Java.Lang.Object.GetObject <global::IT.Icbpi.XPaySDK.Models.WebApi.Requests.GestioneContratti.ContractPOS> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Amount);
 }
 static IntPtr n_GetTransactionDate(IntPtr jnienv, IntPtr native__this)
 {
     global::IT.Icbpi.XPaySDK.Models.WebApi.Requests.GestioneContratti.ContractPOS __this = global::Java.Lang.Object.GetObject <global::IT.Icbpi.XPaySDK.Models.WebApi.Requests.GestioneContratti.ContractPOS> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.TransactionDate));
 }