mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Added account categories
This commit is contained in:
@@ -92,6 +92,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
public String fingerprint;
|
||||
|
||||
public String name;
|
||||
public String category;
|
||||
public String signature; // obsolete
|
||||
public Integer color;
|
||||
|
||||
@@ -255,6 +256,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
json.put("fingerprint", fingerprint);
|
||||
|
||||
json.put("name", name);
|
||||
json.put("category", category);
|
||||
json.put("color", color);
|
||||
|
||||
json.put("synchronize", synchronize);
|
||||
@@ -328,6 +330,8 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
|
||||
if (json.has("name") && !json.isNull("name"))
|
||||
account.name = json.getString("name");
|
||||
if (json.has("category") && !json.isNull("category"))
|
||||
account.category = json.getString("category");
|
||||
if (json.has("color"))
|
||||
account.color = json.getInt("color");
|
||||
|
||||
@@ -386,6 +390,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
this.password.equals(other.password) &&
|
||||
Objects.equals(this.realm, other.realm) &&
|
||||
Objects.equals(this.name, other.name) &&
|
||||
Objects.equals(this.category, other.category) &&
|
||||
Objects.equals(this.color, other.color) &&
|
||||
this.synchronize.equals(other.synchronize) &&
|
||||
this.primary.equals(other.primary) &&
|
||||
|
||||
Reference in New Issue
Block a user