Beispiel #1
0
        static void n_Remove_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_key)
        {
            global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string key = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);

            __this.Remove(key);
        }
Beispiel #2
0
        static void n_Put_Ljava_lang_String_Lorg_eclipse_paho_client_mqttv3_MqttPersistable_(IntPtr jnienv, IntPtr native__this, IntPtr native_key, IntPtr native_persistable)
        {
            global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string key = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);

            global::Org.Eclipse.Paho.Client.Mqttv3.IMqttPersistable persistable = (global::Org.Eclipse.Paho.Client.Mqttv3.IMqttPersistable)global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.IMqttPersistable> (native_persistable, JniHandleOwnership.DoNotTransfer);
            __this.Put(key, persistable);
        }
Beispiel #3
0
        static void n_Open_Ljava_lang_String_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_clientId, IntPtr native_serverURI)
        {
            global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string clientId  = JNIEnv.GetString(native_clientId, JniHandleOwnership.DoNotTransfer);
            string serverURI = JNIEnv.GetString(native_serverURI, JniHandleOwnership.DoNotTransfer);

            __this.Open(clientId, serverURI);
        }
Beispiel #4
0
        static IntPtr n_Get_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_key)
        {
            global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string key   = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Get(key));

            return(__ret);
        }
Beispiel #5
0
        static bool n_ContainsKey_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_key)
        {
            global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string key   = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);
            bool   __ret = __this.ContainsKey(key);

            return(__ret);
        }
        static void n_Open_Ljava_lang_String_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.Open(p0, p1);
        }
Beispiel #7
0
 static void n_Close(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Close();
 }
Beispiel #8
0
 static IntPtr n_Keys(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence __this = global::Java.Lang.Object.GetObject <global::Org.Eclipse.Paho.Client.Mqttv3.Persist.MemoryPersistence> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Keys()));
 }