diff --git a/src/main/java/org/ntlab/acanthus_server/entities/InvitesJson.java b/src/main/java/org/ntlab/acanthus_server/entities/InvitesJson.java new file mode 100644 index 0000000..48a4d53 --- /dev/null +++ b/src/main/java/org/ntlab/acanthus_server/entities/InvitesJson.java @@ -0,0 +1,25 @@ +package org.ntlab.acanthus_server.entities; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Collection; + +public class InvitesJson { + + @JsonProperty("invites") + private Collection invites; + + public InvitesJson(Collection accounts) { + for(Account inviter : accounts){ + this.invites.add(inviter.getUid()); + } + } + + public Collection getInvitesJson() { + return invites; + } + + public void setInvitesJson(Integer uid){ + this.invites.add(uid); + } +}