diff --git a/src/main/java/com/ntlab/irisserver/entities/Drawing.java b/src/main/java/com/ntlab/irisserver/entities/Drawing.java index c49a153..225da01 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Drawing.java +++ b/src/main/java/com/ntlab/irisserver/entities/Drawing.java @@ -9,45 +9,14 @@ public class Drawing { - // お題 - @JsonProperty("title") - private String title; - - // 作者名 - @JsonProperty("member") - private String member; - // 絵のデータ @JsonProperty("drawing") private String drawing; - // true: 終了, false: まだ描かれていない - @JsonProperty("isDrawn") - private Boolean isDrawn; - - // リストに何を持たすかは相談したいところなので仮置き。。。 - private Map drawings = new HashMap<>(); - - - //----------------------------------------------------------------- - // getter - public String getTitle() { - return this.title; - } - public String getMember() { - return this.member; - } - public String getDrawing() { - return this.drawing; - } - public Boolean isDrawn() { - return this.isDrawn; + public Drawing(String drawing) { + this.drawing = drawing; } - //----------------------------------------------------------------- - // setter - public void setTitle(String title) {this.title = title;} - public void setMember(String member) {this.member = member;} - public void setDrawing(String drawing) {this.drawing = drawing;} - public void setIsDrawn(Boolean status) {this.isDrawn = status;} + //getter + public String getDrawing() {return this.drawing;} }