package com.ntlab.irisserver.entities; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; 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<Integer, Drawing> 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; } //----------------------------------------------------------------- // 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;} }