示例#1
0
        public static unsafe global::Com.Liveperson.Api.Response.Types.CsatStatus ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/liveperson/api/response/types/CsatStatus;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Liveperson.Api.Response.Types.CsatStatus __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Types.CsatStatus> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
示例#2
0
        public unsafe UpdateConversationField(string p0, string p1, int p2, int p3, global::Com.Liveperson.Api.Response.Types.CsatStatus p4)
            : 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);

            try {
                JValue *__args = stackalloc JValue [5];
                __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);
                if (((object)this).GetType() != typeof(UpdateConversationField))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;IILcom/liveperson/api/response/types/CsatStatus;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;IILcom/liveperson/api/response/types/CsatStatus;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_IILcom_liveperson_api_response_types_CsatStatus_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_IILcom_liveperson_api_response_types_CsatStatus_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;IILcom/liveperson/api/response/types/CsatStatus;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_IILcom_liveperson_api_response_types_CsatStatus_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_IILcom_liveperson_api_response_types_CsatStatus_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }