use of se.light.assembly64.model.PlaylistEntry in project assembly64fx by freabemania.
the class PlaylistService method moveSongInList.
public void moveSongInList(PlaylistInfo playlist, int from, int to) {
getClient().target(server).path("/leet/playlistsnew/move/" + playlist.getId() + "/" + from + "/" + to).request().header("email", email).header("token", token).get().close();
List<PlaylistEntry> list = playlistSongs.get(playlist.getId());
PlaylistEntry entry = list.remove(from);
list.add(to, entry);
flushLocalList(playlist, list);
playlist.setChecksum(getChksum(list));
flushPlaylistInfo();
Analytics.sendEvent("sidify", "movesong");
}
Aggregations