Added account categories

This commit is contained in:
M66B
2021-10-03 21:45:18 +02:00
parent 8516de0491
commit 50af1c5fb5
11 changed files with 2746 additions and 6 deletions

View File

@@ -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) &&