Preparation to music streaming
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user