mirror of https://github.com/M66B/FairEmail.git
Cleanup
This commit is contained in:
parent
120157066a
commit
7364b97cb7
|
@ -52,8 +52,7 @@ public interface DaoFolder {
|
|||
EntityFolder getBrowsableFolder(long folder, boolean search);
|
||||
|
||||
@Query("SELECT folder.*" +
|
||||
", account.name AS accountName, account.color AS accountColor" +
|
||||
", account.state AS accountState, account.error AS accountError" +
|
||||
", account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
|
||||
", COUNT(message.id) AS messages" +
|
||||
", SUM(CASE WHEN message.content = 1 THEN 1 ELSE 0 END) AS content" +
|
||||
", SUM(CASE WHEN message.ui_seen = 0 THEN 1 ELSE 0 END) AS unseen" +
|
||||
|
@ -68,8 +67,7 @@ public interface DaoFolder {
|
|||
LiveData<List<TupleFolderEx>> liveFolders(Long account);
|
||||
|
||||
@Query("SELECT folder.*" +
|
||||
", account.name AS accountName, account.color AS accountColor" +
|
||||
", account.state AS accountState, account.error AS accountError" +
|
||||
", account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
|
||||
", COUNT(message.id) AS messages" +
|
||||
", SUM(CASE WHEN message.content = 1 THEN 1 ELSE 0 END) AS content" +
|
||||
", SUM(CASE WHEN message.ui_seen = 0 THEN 1 ELSE 0 END) AS unseen" +
|
||||
|
@ -89,8 +87,7 @@ public interface DaoFolder {
|
|||
LiveData<EntityFolder> livePrimaryDrafts();
|
||||
|
||||
@Query("SELECT folder.*" +
|
||||
", account.name AS accountName, account.color AS accountColor" +
|
||||
", account.state AS accountState, account.error AS accountError" +
|
||||
", account.name AS accountName, account.color AS accountColor, account.state AS accountState" +
|
||||
", COUNT(message.id) AS messages" +
|
||||
", SUM(CASE WHEN message.content = 1 THEN 1 ELSE 0 END) AS content" +
|
||||
", SUM(CASE WHEN message.ui_seen = 0 THEN 1 ELSE 0 END) AS unseen" +
|
||||
|
|
|
@ -25,7 +25,6 @@ public class TupleFolderEx extends EntityFolder {
|
|||
public String accountName;
|
||||
public Integer accountColor;
|
||||
public String accountState;
|
||||
public String accountError;
|
||||
public int messages;
|
||||
public int content;
|
||||
public int unseen;
|
||||
|
@ -38,7 +37,6 @@ public class TupleFolderEx extends EntityFolder {
|
|||
Objects.equals(accountName, other.accountName) &&
|
||||
Objects.equals(this.accountColor, other.accountColor) &&
|
||||
Objects.equals(accountState, other.accountState) &&
|
||||
Objects.equals(accountError, other.accountError) &&
|
||||
this.messages == other.messages &&
|
||||
this.content == other.content &&
|
||||
this.unseen == other.unseen);
|
||||
|
|
Loading…
Reference in New Issue