public unsafe ApiReportOrdiniRequest(string p0, global::Java.Util.Date p1, global::Java.Util.Date p2, global::IT.Icbpi.XPaySDK.Utils.BackOffice.ReportOrdiniUtils.Channel p3, global::IT.Icbpi.XPaySDK.Utils.BackOffice.ReportOrdiniUtils.Status[] p4, string p5)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p4 = JNIEnv.NewArray(p4);
            IntPtr native_p5 = JNIEnv.NewString(p5);

            try {
                JValue *__args = stackalloc JValue [6];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                __args [5] = new JValue(native_p5);
                if (((object)this).GetType() != typeof(ApiReportOrdiniRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Channel;[Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Status;Ljava/lang/String;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Channel;[Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Status;Ljava/lang/String;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_util_Date_Ljava_util_Date_Lit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Channel_arrayLit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Status_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_util_Date_Ljava_util_Date_Lit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Channel_arrayLit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Status_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Channel;[Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Status;Ljava/lang/String;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_util_Date_Ljava_util_Date_Lit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Channel_arrayLit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Status_Ljava_lang_String_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_util_Date_Ljava_util_Date_Lit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Channel_arrayLit_icbpi_XPaySDK_Utils_BackOffice_ReportOrdiniUtils_Status_Ljava_lang_String_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                if (p4 != null)
                {
                    JNIEnv.CopyArray(native_p4, p4);
                    JNIEnv.DeleteLocalRef(native_p4);
                }
                JNIEnv.DeleteLocalRef(native_p5);
            }
        }
            public static unsafe global::IT.Icbpi.XPaySDK.Utils.BackOffice.ReportOrdiniUtils.Channel ValueOf(string p0)
            {
                if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lit/icbpi/XPaySDK/Utils/BackOffice/ReportOrdiniUtils$Channel;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::IT.Icbpi.XPaySDK.Utils.BackOffice.ReportOrdiniUtils.Channel __ret = global::Java.Lang.Object.GetObject <global::IT.Icbpi.XPaySDK.Utils.BackOffice.ReportOrdiniUtils.Channel> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }