Added attachment section IDs

This commit is contained in:
M66B
2023-06-21 12:23:21 +02:00
parent c20c416730
commit 7d1ca2840f
6 changed files with 2984 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ public class EntityAttachment {
@PrimaryKey(autoGenerate = true)
public Long id;
public String section;
@NonNull
public Long message;
@NonNull
@@ -427,7 +428,8 @@ public class EntityAttachment {
public boolean equals(Object obj) {
if (obj instanceof EntityAttachment) {
EntityAttachment other = (EntityAttachment) obj;
return (this.message.equals(other.message) &&
return (Objects.equals(this.section, other.section) &&
this.message.equals(other.message) &&
this.sequence.equals(other.sequence) &&
Objects.equals(this.name, other.name) &&
this.type.equals(other.type) &&