Added widget new message count per account

This commit is contained in:
M66B
2020-01-01 20:18:54 +01:00
parent 15314464c1
commit b99fcb48f7
9 changed files with 298 additions and 73 deletions

View File

@@ -25,6 +25,7 @@ import androidx.annotation.Nullable;
import java.util.Objects;
public class TupleMessageStats {
public Long account;
public Integer unseen;
public Integer notifying;
@@ -32,7 +33,8 @@ public class TupleMessageStats {
public boolean equals(@Nullable Object obj) {
if (obj instanceof TupleMessageStats) {
TupleMessageStats other = (TupleMessageStats) obj;
return (Objects.equals(this.unseen, other.unseen) &&
return (Objects.equals(this.account, other.account) &&
Objects.equals(this.unseen, other.unseen) &&
Objects.equals(this.notifying, other.notifying));
} else
return false;