mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 10:23:33 +00:00
Preparation to music streaming
This commit is contained in:
parent
f837bb14e2
commit
a28ad27288
23 changed files with 615 additions and 279 deletions
|
|
@ -8,14 +8,14 @@ import java.util.List;
|
|||
|
||||
public class QueueUtil {
|
||||
public static Queue getQueueElementFromSong(Song song) {
|
||||
return new Queue(song.getId());
|
||||
return new Queue(song.getId(), 0);
|
||||
}
|
||||
|
||||
public static List<Queue> getQueueElementsFromSongs(List<Song> songs) {
|
||||
List<Queue> queue = new ArrayList<>();
|
||||
|
||||
for(Song song: songs) {
|
||||
queue.add(new Queue(song.getId()));
|
||||
queue.add(new Queue(song.getId(), 0));
|
||||
}
|
||||
|
||||
return queue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue