diff --git a/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java b/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java index f0d5dd6..21f066a 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java @@ -6,6 +6,7 @@ import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; +import java.util.ArrayList; import java.util.Collection; @JsonInclude(JsonInclude.Include.NON_NULL) @@ -31,8 +32,11 @@ @JsonProperty("owner") private Integer owner; -// @JsonProperty("editors") -// private Collection editors; + @JsonProperty("editorNames") + private Collection editorNames =new ArrayList<>(); + + @JsonProperty("editorIds") + private Collection editorIds = new ArrayList<>(); @JsonProperty("createdDate") private String createdDate; @@ -43,6 +47,10 @@ this.animationName = animation.getName(); this.owner = animation.getOwner().getUid(); // this.editors = animation.getEditors(); + for(Editor editor:animation.getEditors()){ + this.editorNames.add(editor.getAccount().getName()); + this.editorIds.add(editor.getUid()); + } this.createdDate = animation.getCreatedDate(); }