Added media type to class and replaced "song" with a generic "media"

This commit is contained in:
antonio 2022-03-12 14:09:00 +01:00
parent eecbed2f61
commit 51cd88dd3f
9 changed files with 52 additions and 38 deletions

View file

@ -45,8 +45,8 @@ public interface DownloadDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAll(List<Download> downloads);
@Query("DELETE FROM download WHERE songId = :songId")
void delete(String songId);
@Query("DELETE FROM download WHERE mediaId = :mediaId")
void delete(String mediaId);
@Query("DELETE FROM download WHERE server=:server")
void deleteAll(String server);