Ejemplo n.º 1
0
        public unsafe DisconnectedMessageBuffer(global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions options)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(options);
                if (((object)this).GetType() != typeof(DisconnectedMessageBuffer))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lorg/eclipse/paho/client/mqttv3/DisconnectedBufferOptions;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/eclipse/paho/client/mqttv3/DisconnectedBufferOptions;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_eclipse_paho_client_mqttv3_DisconnectedBufferOptions_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_eclipse_paho_client_mqttv3_DisconnectedBufferOptions_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/eclipse/paho/client/mqttv3/DisconnectedBufferOptions;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_eclipse_paho_client_mqttv3_DisconnectedBufferOptions_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_eclipse_paho_client_mqttv3_DisconnectedBufferOptions_, __args);
            } finally {
            }
        }
Ejemplo n.º 2
0
        public unsafe DisconnectedMessageBuffer(global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions options)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lorg/eclipse/paho/client/mqttv3/DisconnectedBufferOptions;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((options == null) ? IntPtr.Zero : ((global::Java.Lang.Object)options).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 3
0
 static bool n_IsBufferEnabled(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.BufferEnabled);
 }
Ejemplo n.º 4
0
 static void n_SetBufferEnabled_Z(IntPtr jnienv, IntPtr native__this, bool bufferEnabled)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.BufferEnabled = bufferEnabled;
 }
Ejemplo n.º 5
0
 static void n_SetDeleteOldestMessages_Z(IntPtr jnienv, IntPtr native__this, bool deleteOldestMessages)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.DisconnectedBufferOptions> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.DeleteOldestMessages = deleteOldestMessages;
 }