mirror of
https://github.com/antebudimir/tempus.git
synced 2026-03-02 11:27:26 +00:00
Revised the gestures of the server adapter
This commit is contained in:
parent
642c41f0c0
commit
d88094b0cf
11 changed files with 195 additions and 21 deletions
|
|
@ -15,7 +15,7 @@ import com.cappielloantonio.play.model.Queue;
|
|||
import com.cappielloantonio.play.model.RecentSearch;
|
||||
import com.cappielloantonio.play.model.Server;
|
||||
|
||||
@Database(entities = {Queue.class, Server.class, RecentSearch.class, Download.class}, version = 12, exportSchema = false)
|
||||
@Database(entities = {Queue.class, Server.class, RecentSearch.class, Download.class}, version = 13, exportSchema = false)
|
||||
public abstract class AppDatabase extends RoomDatabase {
|
||||
private static final String TAG = "AppDatabase";
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ public interface ServerDao {
|
|||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insert(Server server);
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
void insertAll(List<Server> servers);
|
||||
|
||||
@Delete
|
||||
void delete(Server server);
|
||||
|
||||
@Query("DELETE FROM server")
|
||||
void deleteAll();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue