Exemplo n.º 1
0
        protected virtual unsafe void Quiesce(global::Org.Eclipse.Paho.Client.Mqttv3.MqttException quiesceResponse)
        {
            const string __id = "quiesce.(Lorg/eclipse/paho/client/mqttv3/MqttException;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((quiesceResponse == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)quiesceResponse).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Exemplo n.º 2
0
 public static unsafe global::Org.Eclipse.Paho.Client.Mqttv3.MqttException CreateMqttException(global::Java.Lang.Throwable cause)
 {
     if (id_createMqttException_Ljava_lang_Throwable_ == IntPtr.Zero)
     {
         id_createMqttException_Ljava_lang_Throwable_ = JNIEnv.GetStaticMethodID(class_ref, "createMqttException", "(Ljava/lang/Throwable;)Lorg/eclipse/paho/client/mqttv3/MqttException;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(cause);
         global::Org.Eclipse.Paho.Client.Mqttv3.MqttException __ret = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttException> (JNIEnv.CallStaticObjectMethod(class_ref, id_createMqttException_Ljava_lang_Throwable_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Exemplo n.º 3
0
        protected virtual unsafe void Quiesce(global::Org.Eclipse.Paho.Client.Mqttv3.MqttException p0)
        {
            if (id_quiesce_Lorg_eclipse_paho_client_mqttv3_MqttException_ == IntPtr.Zero)
            {
                id_quiesce_Lorg_eclipse_paho_client_mqttv3_MqttException_ = JNIEnv.GetMethodID(class_ref, "quiesce", "(Lorg/eclipse/paho/client/mqttv3/MqttException;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_quiesce_Lorg_eclipse_paho_client_mqttv3_MqttException_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "quiesce", "(Lorg/eclipse/paho/client/mqttv3/MqttException;)V"), __args);
                }
            } finally {
            }
        }
Exemplo n.º 4
0
 static void n_Quiesce_Lorg_eclipse_paho_client_mqttv3_MqttException_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.Internal.CommsTokenStore __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Internal.CommsTokenStore> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Eclipse.Paho.Client.Mqttv3.MqttException            p0     = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttException> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Quiesce(p0);
 }
Exemplo n.º 5
0
 static IntPtr n_ToString(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.MqttException __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttException> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ToString()));
 }
Exemplo n.º 6
0
 static int n_GetReasonCode(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.MqttException __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttException> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ReasonCode);
 }
Exemplo n.º 7
0
 static void n_ConnectionLost_Lorg_eclipse_paho_client_mqttv3_MqttException_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.Internal.CommsCallback __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Internal.CommsCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Eclipse.Paho.Client.Mqttv3.MqttException          p0     = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.MqttException> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.ConnectionLost(p0);
 }