Пример #1
0
        static IntPtr n_SetHistoryConversationsStateToDisplay_Lcom_liveperson_infra_LPConversationsHistoryStateToDisplay_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Infra.ConversationViewParams __this           = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.ConversationViewParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Infra.LPConversationsHistoryStateToDisplay p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPConversationsHistoryStateToDisplay> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetHistoryConversationsStateToDisplay(p0));

            return(__ret);
        }
        public static unsafe global::Com.Liveperson.Infra.LPConversationsHistoryStateToDisplay 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/infra/LPConversationsHistoryStateToDisplay;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Liveperson.Infra.LPConversationsHistoryStateToDisplay __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPConversationsHistoryStateToDisplay> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Пример #3
0
        public virtual unsafe global::Com.Liveperson.Infra.ConversationViewParams SetHistoryConversationsStateToDisplay(global::Com.Liveperson.Infra.LPConversationsHistoryStateToDisplay p0)
        {
            if (id_setHistoryConversationsStateToDisplay_Lcom_liveperson_infra_LPConversationsHistoryStateToDisplay_ == IntPtr.Zero)
            {
                id_setHistoryConversationsStateToDisplay_Lcom_liveperson_infra_LPConversationsHistoryStateToDisplay_ = JNIEnv.GetMethodID(class_ref, "setHistoryConversationsStateToDisplay", "(Lcom/liveperson/infra/LPConversationsHistoryStateToDisplay;)Lcom/liveperson/infra/ConversationViewParams;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Liveperson.Infra.ConversationViewParams __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.ConversationViewParams> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_setHistoryConversationsStateToDisplay_Lcom_liveperson_infra_LPConversationsHistoryStateToDisplay_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.ConversationViewParams> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setHistoryConversationsStateToDisplay", "(Lcom/liveperson/infra/LPConversationsHistoryStateToDisplay;)Lcom/liveperson/infra/ConversationViewParams;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }