Report/show account, folder, message and operation errors

This commit is contained in:
M66B
2018-08-11 08:28:54 +00:00
parent f83a4f60ec
commit 6713134e43
13 changed files with 197 additions and 73 deletions

View File

@@ -59,7 +59,9 @@ public class EntityOperation {
public Long message;
@NonNull
public String name;
@NonNull
public String args;
public String error;
public static final String SEEN = "seen";
public static final String ADD = "add";
@@ -123,4 +125,17 @@ public class EntityOperation {
queue.clear();
}
}
@Override
public boolean equals(Object obj) {
if (obj instanceof EntityOperation) {
EntityOperation other = (EntityOperation) obj;
return (this.folder.equals(other.folder) &&
this.message.equals(other.message) &&
this.name.equals(other.name) &&
this.args.equals(other.args) &&
(this.error == null ? other.error == null : this.error.equals(other.error)));
} else
return false;
}
}