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 e4b0134..a0bd270 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java @@ -4,10 +4,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.Collection; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "aid", - "animationName" + "animationName", + "owner", + "editors" }) @@ -21,12 +25,19 @@ @JsonProperty("animationName") private String animationName; + @JsonProperty("owner") + private Integer owner; + + @JsonProperty("editors") + private Collection editors; + public AnimationJson(Animation animation){ this.aid = animation.getAid(); this.animationName = animation.getName(); + this.owner = animation.getOwner().getUid(); + this.editors = animation.getEditors(); } - }