mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-03 19:01:39 +00:00
Playlists pinned by saving the server information
This commit is contained in:
parent
a1885e96cd
commit
08c1b03d84
8 changed files with 29 additions and 10 deletions
|
|
@ -13,8 +13,8 @@ import java.util.List;
|
|||
|
||||
@Dao
|
||||
public interface PlaylistDao {
|
||||
@Query("SELECT * FROM playlist")
|
||||
LiveData<List<Playlist>> getAll();
|
||||
@Query("SELECT * FROM playlist WHERE server=:serverId")
|
||||
LiveData<List<Playlist>> getAll(String serverId);
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insert(Playlist playlist);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public interface QueueDao {
|
|||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insertAll(List<Queue> songQueueObject);
|
||||
|
||||
@Query("DELETE FROM queue WHERE queue.track_order = :position")
|
||||
@Query("DELETE FROM queue WHERE queue.track_order=:position")
|
||||
void deleteByPosition(int position);
|
||||
|
||||
@Query("DELETE FROM queue")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue