public virtual unsafe long CalculateEffectiveTTR(string p0, global::Com.Liveperson.Api.Response.Types.TTRType p1, long p2, long p3, long p4)
        {
            if (id_calculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ == IntPtr.Zero)
            {
                id_calculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ = JNIEnv.GetMethodID(class_ref, "calculateEffectiveTTR", "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;JJJ)J");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [5];
                __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(p4);

                long __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallLongMethod(((global::Java.Lang.Object) this).Handle, id_calculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualLongMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "calculateEffectiveTTR", "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;JJJ)J"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public virtual unsafe void UpdateTTR(global::Com.Liveperson.Api.Response.Types.TTRType p0, long p1, long p2, string p3)
        {
            if (id_updateTTR_Lcom_liveperson_api_response_types_TTRType_JJLjava_lang_String_ == IntPtr.Zero)
            {
                id_updateTTR_Lcom_liveperson_api_response_types_TTRType_JJLjava_lang_String_ = JNIEnv.GetMethodID(class_ref, "updateTTR", "(Lcom/liveperson/api/response/types/TTRType;JJLjava/lang/String;)V");
            }
            IntPtr native_p3 = JNIEnv.NewString(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(native_p3);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_updateTTR_Lcom_liveperson_api_response_types_TTRType_JJLjava_lang_String_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "updateTTR", "(Lcom/liveperson/api/response/types/TTRType;JJLjava/lang/String;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
        static void n_UpdateTTR_Lcom_liveperson_api_response_types_TTRType_JJLjava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, long p2, IntPtr native_p3)
        {
            global::Com.Liveperson.Messaging.Model.ConversationUtils __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.ConversationUtils> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Api.Response.Types.TTRType        p0     = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Types.TTRType> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p3 = JNIEnv.GetString(native_p3, JniHandleOwnership.DoNotTransfer);

            __this.UpdateTTR(p0, p1, p2, p3);
        }
Esempio n. 4
0
        static IntPtr n_SetTtrType_Lcom_liveperson_api_response_types_TTRType_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Network.Socket.Requests.NewConversationRequest __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.NewConversationRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Api.Response.Types.TTRType p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Types.TTRType> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetTtrType(p0));

            return(__ret);
        }
        static long n_CalculateEffectiveTTR_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_JJJ(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, long p2, long p3, long p4)
        {
            global::Com.Liveperson.Messaging.Model.ConversationUtils __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.ConversationUtils> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Com.Liveperson.Api.Response.Types.TTRType p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Types.TTRType> (native_p1, JniHandleOwnership.DoNotTransfer);
            long __ret = __this.CalculateEffectiveTTR(p0, p1, p2, p3, p4);

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

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Liveperson.Api.Response.Types.TTRType __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Types.TTRType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public unsafe ConsumerRequestConversation(string p0, global::Com.Liveperson.Api.Response.Types.TTRType p1, string p2, string p3, global::Com.Liveperson.Infra.CampaignInfo p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p2 = JNIEnv.NewString(p2);
            IntPtr native_p3 = JNIEnv.NewString(p3);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                if (((object)this).GetType() != typeof(ConsumerRequestConversation))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/CampaignInfo;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/CampaignInfo;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_CampaignInfo_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_CampaignInfo_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/CampaignInfo;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_CampaignInfo_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_CampaignInfo_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
Esempio n. 8
0
        public unsafe ChangeConversationTTRCommand(global::Com.Liveperson.Messaging.Model.AmsConversations p0, string p1, string p2, global::Com.Liveperson.Api.Response.Types.TTRType p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(ChangeConversationTTRCommand))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/model/AmsConversations;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/model/AmsConversations;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/model/AmsConversations;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/api/response/types/TTRType;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsConversations_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_api_response_types_TTRType_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
Esempio n. 9
0
        public virtual unsafe global::Com.Liveperson.Messaging.Network.Socket.Requests.NewConversationRequest SetTtrType(global::Com.Liveperson.Api.Response.Types.TTRType p0)
        {
            if (id_setTtrType_Lcom_liveperson_api_response_types_TTRType_ == IntPtr.Zero)
            {
                id_setTtrType_Lcom_liveperson_api_response_types_TTRType_ = JNIEnv.GetMethodID(class_ref, "setTtrType", "(Lcom/liveperson/api/response/types/TTRType;)Lcom/liveperson/messaging/network/socket/requests/NewConversationRequest;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Liveperson.Messaging.Network.Socket.Requests.NewConversationRequest __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.NewConversationRequest> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_setTtrType_Lcom_liveperson_api_response_types_TTRType_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.Requests.NewConversationRequest> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setTtrType", "(Lcom/liveperson/api/response/types/TTRType;)Lcom/liveperson/messaging/network/socket/requests/NewConversationRequest;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }