Batch folder download

This commit is contained in:
M66B
2019-10-20 16:36:33 +02:00
parent a21aa3e68f
commit d423ebfa92
3 changed files with 16 additions and 2 deletions

View File

@@ -265,11 +265,12 @@ public interface DaoFolder {
@Query("UPDATE folder" +
" SET poll = :poll" +
", download = :download" +
", sync_days = :sync_days" +
", keep_days = :keep_days" +
" WHERE account = :account" +
" AND type = '" + EntityFolder.USER + "'")
int setFolderProperties(long account, boolean poll, int sync_days, int keep_days);
int setFolderProperties(long account, boolean poll, boolean download, int sync_days, int keep_days);
@Query("UPDATE folder SET keywords = :keywords WHERE id = :id")
int setFolderKeywords(long id, String keywords);