예제 #1
0
        public void ReorderTracks(IEnumerable <Track> tracks, int position)
        {
            int[] indices = tracks.Select(t => t.Index).ToArray();
            ThrowIfDuplicates(indices);

            ThrowHelper.ThrowIfError(
                LibSpotify.sp_playlist_reorder_tracks_r(Handle, indices, indices.Length, position));
        }