예제 #1
0
        public unsafe UploadVoiceTask(global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle p0, global::Java.Lang.Integer p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(UploadVoiceTask))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/messaging/background/filesharing/UploadFileTaskBundle;Ljava/lang/Integer;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/messaging/background/filesharing/UploadFileTaskBundle;Ljava/lang/Integer;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_liveperson_messaging_background_filesharing_UploadFileTaskBundle_Ljava_lang_Integer_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_liveperson_messaging_background_filesharing_UploadFileTaskBundle_Ljava_lang_Integer_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/background/filesharing/UploadFileTaskBundle;Ljava/lang/Integer;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_background_filesharing_UploadFileTaskBundle_Ljava_lang_Integer_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_background_filesharing_UploadFileTaskBundle_Ljava_lang_Integer_, __args);
            } finally {
            }
        }
 static void n_SetTaskID_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SetTaskID(p0);
 }
        static IntPtr n_Build_ILandroid_content_Context_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1)
        {
            global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.Context p1 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Build(p0, p1));

            return(__ret);
        }
        static IntPtr n_AddMessage_Lcom_liveperson_infra_utils_MaskedMessage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Liveperson.Infra.Utils.MaskedMessage p0 = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Utils.MaskedMessage> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddMessage(p0));

            return(__ret);
        }
        static IntPtr n_AddFileUri_Landroid_net_Uri_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Net.Uri p0 = global::Java.Lang.Object.GetObject <global::Android.Net.Uri> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddFileUri(p0));

            return(__ret);
        }
 static int n_GetTaskId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.TaskId);
 }
 static IntPtr n_GetRestParams(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.RestParams));
 }
        static void n_SetFileTypeExtension_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.FileTypeExtension = p0;
        }
 static IntPtr n_GetFileTypeExtension(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.UploadFileTaskBundle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.FileTypeExtension));
 }