diff --git a/src/main/java/com/ntlab/irisserver/entities/Turn.java b/src/main/java/com/ntlab/irisserver/entities/Turn.java index dac1b89..e34d5db 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Turn.java +++ b/src/main/java/com/ntlab/irisserver/entities/Turn.java @@ -18,7 +18,7 @@ @JsonProperty("max") private int max; - private Map> questions = new HashMap<>(); + private List> questions = new ArrayList<>(); //> private List openlist = new ArrayList<>(); @@ -42,24 +42,26 @@ public int getMax() {return max;} - public List getOpenLists() {return openlist;} + public List getOpenListAll() {return openlist;} //リストそのものを返す。 - public Map> getQuestionsMap() {return questions;} + public List> getQuestionsList() {return questions;} //--------------------------------------------------------- //questions操作 - public List getQuestions(Cell card){return questions.get(card);} + public List getQuestions(int cno){return questions.get(cno);} - public void addQuestions(Cell card, Member m){questions.get(card).add(m);} + public void addQuestions(int cno, Member m){questions.get(cno).add(m);} - public void delieteQuestions(Cell card, Member m){} //Listのキーが分からない状態での削除どうやんの? + public void delieteQuestions(int cno, Member m){ + + } //Listのキーが分からない状態での削除どうやんの? public int sizeQuestions(){return questions.size();} //openlist操作 - public Cell getOpenList(int num){return openlist.get(num);} + public Cell getOpenListSolo(int num){return openlist.get(num);} public void addOpenList(Cell card){openlist.add(card);}