public unsafe global::Com.Spotify.Protocol.Mappers.IJsonArray ToJsonArray(string p0)
        {
            if (id_toJsonArray_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_toJsonArray_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "toJsonArray", "(Ljava/lang/String;)Lcom/spotify/protocol/mappers/JsonArray;");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [1];

            __args [0] = new JValue(native_p0);
            global::Com.Spotify.Protocol.Mappers.IJsonArray __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Mappers.IJsonArray> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_toJsonArray_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
Exemple #2
0
        public unsafe WampMessage(global::Com.Spotify.Protocol.Mappers.IJsonArray jsonArray)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/spotify/protocol/mappers/JsonArray;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((jsonArray == null) ? IntPtr.Zero : ((global::Java.Lang.Object)jsonArray).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
 static int n_GetIntAt_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Spotify.Protocol.Mappers.IJsonArray __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Mappers.IJsonArray> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.GetIntAt(p0));
 }