Auto adjust keep alive interval

This commit is contained in:
M66B
2019-07-08 16:48:59 +02:00
parent d7ca03cfbb
commit db1ea29fbf
2 changed files with 30 additions and 6 deletions

View File

@@ -126,6 +126,9 @@ public interface DaoAccount {
@Query("UPDATE account SET error = :error WHERE id = :id")
int setAccountError(long id, String error);
@Query("UPDATE account SET poll_interval = :poll_interval WHERE id = :id")
int setAccountPollInterval(long id, int poll_interval);
@Query("UPDATE account SET `primary` = 0")
void resetPrimary();