Added local contact groups

This commit is contained in:
M66B
2022-03-27 10:21:06 +02:00
parent 8d1e5ae483
commit 1391db53e5
9 changed files with 2899 additions and 85 deletions

View File

@@ -84,6 +84,7 @@ public class EntityContact implements Serializable {
@NonNull
public String email;
public String name;
public String group;
public String avatar;
@NonNull
@@ -234,6 +235,7 @@ public class EntityContact implements Serializable {
json.put("type", type);
json.put("email", email);
json.put("name", name);
json.put("group", group);
json.put("avatar", avatar);
json.put("times_contacted", times_contacted);
json.put("first_contacted", first_contacted);
@@ -251,6 +253,9 @@ public class EntityContact implements Serializable {
if (json.has("name") && !json.isNull("name"))
contact.name = json.getString("name");
if (json.has("group") && !json.isNull("group"))
contact.group = json.getString("group");
if (json.has("avatar") && !json.isNull("avatar"))
contact.avatar = json.getString("avatar");
@@ -270,6 +275,7 @@ public class EntityContact implements Serializable {
this.type == other.type &&
this.email.equals(other.email) &&
Objects.equals(this.name, other.name) &&
Objects.equals(this.group, other.group) &&
Objects.equals(this.avatar, other.avatar) &&
this.times_contacted.equals(other.times_contacted) &&
this.first_contacted.equals(first_contacted) &&