Add playlist catalogue page and item
This commit is contained in:
1 parent
717986ea2c
commit
ee8509032a
15 files changed
+411
-60
No files matched your search
@@ -8,6 +8,7 @@ import androidx.room.OnConflictStrategy;
|
||||
import androidx.room.Query;
|
||||
|
||||
import com.cappielloantonio.play.model.Playlist;
|
||||
import com.cappielloantonio.play.model.Song;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -21,4 +22,7 @@ public interface PlaylistDao {
|
||||
|
||||
@Query("DELETE FROM playlist")
|
||||
void deleteAll();
|
||||
|
||||
@Query("SELECT * FROM playlist ORDER BY RANDOM() LIMIT :number")
|
||||
List<Playlist> random(int number);
|
||||
}
|
||||
Reference in new issue
Block a user