Ejemplo n.º 1
0
        static IntPtr n_PlayContentItem_Lcom_spotify_protocol_types_ListItem_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Spotify.Android.Appremote.Api.IContentApi __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.IContentApi> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Spotify.Protocol.Types.ListItem           p0     = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Types.ListItem> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.PlayContentItem(p0));

            return(__ret);
        }
        static IntPtr n_GetChildrenOfItem_Lcom_spotify_protocol_types_ListItem_II(IntPtr jnienv, IntPtr native__this, IntPtr native_item, int perpage, int offset)
        {
            global::Com.Spotify.Android.Appremote.Internal.ContentApiImpl __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Internal.ContentApiImpl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Spotify.Protocol.Types.ListItem item = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Types.ListItem> (native_item, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetChildrenOfItem(item, perpage, offset));

            return(__ret);
        }
Ejemplo n.º 3
0
        public unsafe global::Com.Spotify.Protocol.Client.CallResult PlayContentItem(global::Com.Spotify.Protocol.Types.ListItem p0)
        {
            if (id_playContentItem_Lcom_spotify_protocol_types_ListItem_ == IntPtr.Zero)
            {
                id_playContentItem_Lcom_spotify_protocol_types_ListItem_ = JNIEnv.GetMethodID(class_ref, "playContentItem", "(Lcom/spotify/protocol/types/ListItem;)Lcom/spotify/protocol/client/CallResult;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_playContentItem_Lcom_spotify_protocol_types_ListItem_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public virtual unsafe global::Com.Spotify.Protocol.Client.CallResult GetChildrenOfItem(global::Com.Spotify.Protocol.Types.ListItem item, int perpage, int offset)
        {
            const string __id = "getChildrenOfItem.(Lcom/spotify/protocol/types/ListItem;II)Lcom/spotify/protocol/client/CallResult;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((item == null) ? IntPtr.Zero : ((global::Java.Lang.Object)item).Handle);
                __args [1] = new JniArgumentValue(perpage);
                __args [2] = new JniArgumentValue(offset);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }