Added folder selection to unified widget

This commit is contained in:
M66B
2019-11-15 12:59:11 +01:00
parent 1c97002cdc
commit a5a59f3639
7 changed files with 107 additions and 29 deletions

View File

@@ -23,15 +23,22 @@ import java.util.Objects;
public class TupleMessageWidget extends EntityMessage {
public String accountName;
public boolean folderUnified;
public int unseen;
public int unflagged;
@Override
public boolean equals(Object obj) {
if (obj instanceof TupleMessageEx) {
TupleMessageEx other = (TupleMessageEx) obj;
return (super.equals(obj) &&
if (obj instanceof TupleMessageWidget) {
TupleMessageWidget other = (TupleMessageWidget) obj;
return (this.id.equals(other.id) &&
this.account.equals(other.account) &&
Objects.equals(this.accountName, other.accountName) &&
this.folder.equals(other.folder) &&
this.folderUnified == other.folderUnified &&
MessageHelper.equal(this.from, other.from) &&
this.received.equals(other.received) &&
Objects.equals(this.subject, other.subject) &&
this.unseen == other.unseen &&
this.unflagged == other.unflagged);
}