Export identity properties

pull/198/head
M66B 4 years ago
parent ab5b782b51
commit bd8fcae739

@ -179,11 +179,11 @@ public class EntityIdentity {
json.put("id", id); json.put("id", id);
json.put("name", name); json.put("name", name);
json.put("email", email); json.put("email", email);
// not account
json.put("display", display); json.put("display", display);
if (color != null) if (color != null)
json.put("color", color); json.put("color", color);
json.put("signature", signature); json.put("signature", signature);
// not account
json.put("host", host); json.put("host", host);
json.put("encryption", encryption); json.put("encryption", encryption);
@ -210,15 +210,22 @@ public class EntityIdentity {
json.put("cc", cc); json.put("cc", cc);
json.put("bcc", bcc); json.put("bcc", bcc);
json.put("unicode", unicode);
// not plain_only // not plain_only
json.put("sign_default", sign_default);
json.put("encrypt_default", encrypt_default);
// not encrypt // not encrypt
// delivery_receipt
// read_receipt
// not store_sent // not store_sent
// not sent_folder // not sent_folder
// not sign_key // not sign_key
// sign_key_alias
// not tbd // not tbd
// not state // not state
// not error // not error
// not last_connected // not last_connected
// not max_size
return json; return json;
} }
@ -276,6 +283,14 @@ public class EntityIdentity {
if (json.has("bcc") && !json.isNull("bcc")) if (json.has("bcc") && !json.isNull("bcc"))
identity.bcc = json.getString("bcc"); identity.bcc = json.getString("bcc");
if (json.has("unicode"))
identity.unicode = json.getBoolean("unicode");
if (json.has("sign_default"))
identity.sign_default = json.getBoolean("sign_default");
if (json.has("encrypt_default"))
identity.encrypt_default = json.getBoolean("encrypt_default");
return identity; return identity;
} }

Loading…
Cancel
Save