Experiment: identity/linked contact

This commit is contained in:
M66B
2023-03-25 15:46:56 +01:00
parent 0d883b50c8
commit fed1994b23
8 changed files with 3181 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ public class EntityIdentity {
public String cc;
public String bcc;
public String internal;
public String uri; // linked contact
@NonNull
public Boolean unicode = false;
@NonNull
@@ -228,6 +229,7 @@ public class EntityIdentity {
json.put("cc", cc);
json.put("bcc", bcc);
json.put("internal", internal);
json.put("uri", uri);
json.put("unicode", unicode);
json.put("octetmime", octetmime);
@@ -310,6 +312,8 @@ public class EntityIdentity {
identity.bcc = json.getString("bcc");
if (json.has("internal") && !json.isNull("internal"))
identity.internal = json.getString("internal");
if (json.has("uri") && !json.isNull("uri"))
identity.uri = json.getString("uri");
if (json.has("unicode"))
identity.unicode = json.getBoolean("unicode");
@@ -366,6 +370,7 @@ public class EntityIdentity {
Objects.equals(i1.cc, other.cc) &&
Objects.equals(i1.bcc, other.bcc) &&
Objects.equals(i1.internal, other.internal) &&
Objects.equals(i1.uri, other.uri) &&
Objects.equals(i1.unicode, other.unicode) &&
Objects.equals(i1.octetmime, other.octetmime) &&
// plain_only