mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Experiment: identity/linked contact
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user