Refactoring

This commit is contained in:
M66B
2019-02-28 08:11:53 +00:00
parent f52fc17136
commit 61240a541f
3 changed files with 5 additions and 5 deletions

View File

@@ -65,6 +65,10 @@ public interface DaoOperation {
@Query(GET_OPS_FOLDER)
LiveData<List<EntityOperation>> liveOperations(long folder);
@Query("SELECT COUNT(operation.id) FROM operation" +
" WHERE operation.name = '" + EntityOperation.SEND + "'")
LiveData<Integer> liveUnsent();
@Query("SELECT * FROM operation ORDER BY id")
List<EntityOperation> getOperations();