Ejemplo n.º 1
0
 public static AlbumBrowse Create(SpotifySession session, Album album, AlbumBrowseComplete callback, object userdata)
 {
     IntPtr listenerToken = ListenerTable.PutUniqueObject(callback, userdata);
     IntPtr ptr = NativeMethods.sp_albumbrowse_create(session._handle, album._handle, AlbumBrowseCompleteDelegate, listenerToken);
     AlbumBrowse browse = BrowseTable.GetUniqueObject(ptr);
     browse.ListenerToken = listenerToken;
     return browse;
 }
Ejemplo n.º 2
0
        public static AlbumBrowse Create(SpotifySession session, Album album, AlbumBrowseComplete callback, object userdata)
        {
            IntPtr      listenerToken = ListenerTable.PutUniqueObject(callback, userdata);
            IntPtr      ptr           = NativeMethods.sp_albumbrowse_create(session._handle, album._handle, AlbumBrowseCompleteDelegate, listenerToken);
            AlbumBrowse browse        = BrowseTable.GetUniqueObject(ptr);

            browse.ListenerToken = listenerToken;
            return(browse);
        }