Allow account ordering

This commit is contained in:
M66B
2019-04-25 08:18:01 +02:00
parent 3764ad2818
commit 2a4ff4b49d
9 changed files with 1850 additions and 38 deletions

View File

@@ -70,6 +70,7 @@ public class EntityAccount implements Serializable {
public String name;
public String signature; // obsolete
public Integer color;
public Integer order;
@NonNull
public Boolean synchronize;
@@ -132,6 +133,7 @@ public class EntityAccount implements Serializable {
json.put("name", name);
json.put("color", color);
json.put("order", order);
json.put("synchronize", synchronize);
json.put("primary", primary);
@@ -167,6 +169,8 @@ public class EntityAccount implements Serializable {
account.name = json.getString("name");
if (json.has("color"))
account.color = json.getInt("color");
if (json.has("order"))
account.order = json.getInt("order");
account.synchronize = json.getBoolean("synchronize");
account.primary = json.getBoolean("primary");