public static unsafe global::Com.Liveperson.Infra.Utils.EncryptionVersion GetAppEncryptionVersion(global::Android.Content.Context p0)
 {
     if (id_getAppEncryptionVersion_Landroid_content_Context_ == IntPtr.Zero)
     {
         id_getAppEncryptionVersion_Landroid_content_Context_ = JNIEnv.GetStaticMethodID(class_ref, "getAppEncryptionVersion", "(Landroid/content/Context;)Lcom/liveperson/infra/utils/EncryptionVersion;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Liveperson.Infra.Utils.EncryptionVersion __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.EncryptionVersion> (JNIEnv.CallStaticObjectMethod(class_ref, id_getAppEncryptionVersion_Landroid_content_Context_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Com.Liveperson.Infra.Utils.EncryptionVersion 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/utils/EncryptionVersion;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Liveperson.Infra.Utils.EncryptionVersion __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.EncryptionVersion> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
コード例 #3
0
        public unsafe Message(string p0, string p1, long p2, string p3, string p4, global::Com.Liveperson.Infra.Utils.EncryptionVersion p5)
            : 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);
            IntPtr native_p3 = JNIEnv.NewString(p3);
            IntPtr native_p4 = JNIEnv.NewString(p4);

            try {
                JValue *__args = stackalloc JValue [6];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(native_p4);
                __args [5] = new JValue(p5);
                if (((object)this).GetType() != typeof(Message))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/utils/EncryptionVersion;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/utils/EncryptionVersion;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_JLjava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_EncryptionVersion_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_JLjava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_EncryptionVersion_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Lcom/liveperson/infra/utils/EncryptionVersion;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_JLjava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_EncryptionVersion_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_JLjava_lang_String_Ljava_lang_String_Lcom_liveperson_infra_utils_EncryptionVersion_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p3);
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }
        public static unsafe string Encrypt(global::Com.Liveperson.Infra.Utils.EncryptionVersion p0, string p1)
        {
            if (id_encrypt_Lcom_liveperson_infra_utils_EncryptionVersion_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_encrypt_Lcom_liveperson_infra_utils_EncryptionVersion_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "encrypt", "(Lcom/liveperson/infra/utils/EncryptionVersion;Ljava/lang/String;)Ljava/lang/String;");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                string __ret = JNIEnv.GetString(JNIEnv.CallStaticObjectMethod(class_ref, id_encrypt_Lcom_liveperson_infra_utils_EncryptionVersion_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
 static void n_SetUserEncryptionVersion_Lcom_liveperson_infra_utils_EncryptionVersion_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Messaging.Model.MessagingUserProfile __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Model.MessagingUserProfile> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Infra.Utils.EncryptionVersion        p0     = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.EncryptionVersion> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.UserEncryptionVersion = p0;
 }