コード例 #1
0
 static void n_WriteToParcel_Landroid_os_Parcel_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int native_p1)
 {
     global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Parcel p0 = global::Java.Lang.Object.GetObject <global::Android.OS.Parcel> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.ParcelableWriteFlags p1 = (global::Android.OS.ParcelableWriteFlags)native_p1;
     __this.WriteToParcel(p0, p1);
 }
コード例 #2
0
        static IntPtr n_SetHostAppRedirectUri_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0    = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetHostAppRedirectUri(p0));

            return(__ret);
        }
        static IntPtr n_GetConversationFragment_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Liveperson.Infra.Messaging_ui.MessagingUIFactory __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Messaging_ui.MessagingUIFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Com.Liveperson.Infra.LPAuthenticationParams p1 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Infra.ConversationViewParams p2 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.ConversationViewParams> (native_p2, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetConversationFragment(p0, p1, p2));

            return(__ret);
        }
        static bool n_ShowConversation_Landroid_app_Activity_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3)
        {
            global::Com.Liveperson.Infra.Messaging_ui.MessagingUIFactory __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Messaging_ui.MessagingUIFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.App.Activity p0 = global::Java.Lang.Object.GetObject <global::Android.App.Activity> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            global::Com.Liveperson.Infra.LPAuthenticationParams p2 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (native_p2, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Infra.ConversationViewParams p3 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.ConversationViewParams> (native_p3, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.ShowConversation(p0, p1, p2, p3);

            return(__ret);
        }
コード例 #5
0
 public static unsafe void Reconnect(global::Com.Liveperson.Infra.LPAuthenticationParams p0)
 {
     if (id_reconnect_Lcom_liveperson_infra_LPAuthenticationParams_ == IntPtr.Zero)
     {
         id_reconnect_Lcom_liveperson_infra_LPAuthenticationParams_ = JNIEnv.GetStaticMethodID(class_ref, "reconnect", "(Lcom/liveperson/infra/LPAuthenticationParams;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallStaticVoidMethod(class_ref, id_reconnect_Lcom_liveperson_infra_LPAuthenticationParams_, __args);
     } finally {
     }
 }
コード例 #6
0
 public static unsafe bool ShowConversation(global::Android.App.Activity p0, global::Com.Liveperson.Infra.LPAuthenticationParams p1, global::Com.Liveperson.Infra.ConversationViewParams p2)
 {
     if (id_showConversation_Landroid_app_Activity_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ == IntPtr.Zero)
     {
         id_showConversation_Landroid_app_Activity_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ = JNIEnv.GetStaticMethodID(class_ref, "showConversation", "(Landroid/app/Activity;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ConversationViewParams;)Z");
     }
     try {
         JValue *__args = stackalloc JValue [3];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_showConversation_Landroid_app_Activity_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_, __args);
         return(__ret);
     } finally {
     }
 }
コード例 #7
0
        public static unsafe void RegisterLPPusher(string p0, string p1, string p2, global::Com.Liveperson.Infra.LPAuthenticationParams p3, global::Com.Liveperson.Infra.ICallback p4)
        {
            if (id_registerLPPusher_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_ == IntPtr.Zero)
            {
                id_registerLPPusher_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_ = JNIEnv.GetStaticMethodID(class_ref, "registerLPPusher", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ICallback;)V");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                JNIEnv.CallStaticVoidMethod(class_ref, id_registerLPPusher_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
        public virtual unsafe bool ShowConversation(global::Android.App.Activity p0, string p1, global::Com.Liveperson.Infra.LPAuthenticationParams p2, global::Com.Liveperson.Infra.ConversationViewParams p3)
        {
            if (id_showConversation_Landroid_app_Activity_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ == IntPtr.Zero)
            {
                id_showConversation_Landroid_app_Activity_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ = JNIEnv.GetMethodID(class_ref, "showConversation", "(Landroid/app/Activity;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ConversationViewParams;)Z");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

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

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_showConversation_Landroid_app_Activity_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "showConversation", "(Landroid/app/Activity;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ConversationViewParams;)Z"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public virtual unsafe global::Android.Support.V4.App.Fragment GetConversationFragment(string p0, global::Com.Liveperson.Infra.LPAuthenticationParams p1, global::Com.Liveperson.Infra.ConversationViewParams p2)
        {
            if (id_getConversationFragment_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ == IntPtr.Zero)
            {
                id_getConversationFragment_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ = JNIEnv.GetMethodID(class_ref, "getConversationFragment", "(Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ConversationViewParams;)Landroid/support/v4/app/Fragment;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

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

                global::Android.Support.V4.App.Fragment __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Support.V4.App.Fragment> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getConversationFragment_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Support.V4.App.Fragment> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getConversationFragment", "(Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ConversationViewParams;)Landroid/support/v4/app/Fragment;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
コード例 #10
0
 static IntPtr n_GetCertificatePinningKeys(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.JavaList <string> .ToLocalJniHandle(__this.CertificatePinningKeys));
 }
コード例 #11
0
 public static unsafe global::Android.Support.V4.App.Fragment GetConversationFragment(global::Com.Liveperson.Infra.LPAuthenticationParams p0, global::Com.Liveperson.Infra.ConversationViewParams p1)
 {
     if (id_getConversationFragment_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ == IntPtr.Zero)
     {
         id_getConversationFragment_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_ = JNIEnv.GetStaticMethodID(class_ref, "getConversationFragment", "(Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ConversationViewParams;)Landroid/support/v4/app/Fragment;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Android.Support.V4.App.Fragment __ret = global::Java.Lang.Object.GetObject <global::Android.Support.V4.App.Fragment> (JNIEnv.CallStaticObjectMethod(class_ref, id_getConversationFragment_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ConversationViewParams_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
コード例 #12
0
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.DescribeContents());
 }
コード例 #13
0
 static bool n_IsAuthenticated(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsAuthenticated);
 }
コード例 #14
0
 static IntPtr n_GetHostAppRedirectUri(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.HostAppRedirectUri));
 }
コード例 #15
0
        public unsafe RegisterPusherCommand(global::Com.Liveperson.Messaging.Messaging p0, string p1, string p2, string p3, global::Com.Liveperson.Infra.LPAuthenticationParams p4, global::Com.Liveperson.Infra.ICallback p5)
            : 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);
            IntPtr native_p3 = JNIEnv.NewString(p3);

            try {
                JValue *__args = stackalloc JValue [6];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(p5);
                if (((object)this).GetType() != typeof(RegisterPusherCommand))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ICallback;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ICallback;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/Messaging;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Lcom/liveperson/infra/ICallback;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_Messaging_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Lcom_liveperson_infra_ICallback_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
        public unsafe IdpRequest(global::Com.Liveperson.Messaging.Model.AmsAccount p0, string p1, string p2, global::Com.Liveperson.Infra.LPAuthenticationParams p3, string p4, global::Com.Liveperson.Messaging.Commands.Tasks.IdpTask.IDPExceptionICallback p5, global::System.Collections.Generic.IList <string> p6)
            : 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);
            IntPtr native_p4 = JNIEnv.NewString(p4);
            IntPtr native_p6 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p6);

            try {
                JValue *__args = stackalloc JValue [7];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(native_p6);
                if (((object)this).GetType() != typeof(IdpRequest))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/model/AmsAccount;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Ljava/lang/String;Lcom/liveperson/messaging/commands/tasks/IdpTask$IDPExceptionICallback;Ljava/util/List;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/model/AmsAccount;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Ljava/lang/String;Lcom/liveperson/messaging/commands/tasks/IdpTask$IDPExceptionICallback;Ljava/util/List;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_model_AmsAccount_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Ljava_lang_String_Lcom_liveperson_messaging_commands_tasks_IdpTask_IDPExceptionICallback_Ljava_util_List_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_model_AmsAccount_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Ljava_lang_String_Lcom_liveperson_messaging_commands_tasks_IdpTask_IDPExceptionICallback_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/model/AmsAccount;Ljava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/LPAuthenticationParams;Ljava/lang/String;Lcom/liveperson/messaging/commands/tasks/IdpTask$IDPExceptionICallback;Ljava/util/List;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsAccount_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Ljava_lang_String_Lcom_liveperson_messaging_commands_tasks_IdpTask_IDPExceptionICallback_Ljava_util_List_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_model_AmsAccount_Ljava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_LPAuthenticationParams_Ljava_lang_String_Lcom_liveperson_messaging_commands_tasks_IdpTask_IDPExceptionICallback_Ljava_util_List_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p4);
                JNIEnv.DeleteLocalRef(native_p6);
            }
        }
コード例 #17
0
 static IntPtr n_GetAuthType(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.LPAuthenticationParams __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.AuthType));
 }