package com.ntlab.irisserver.entities; import com.fasterxml.jackson.annotation.JsonProperty; public class Settings { @JsonProperty("drawingTimer") private boolean drawingTimer; @JsonProperty("drawingTimerTimes") private int drawingTimerTimes; @JsonProperty("gameTimer") private boolean gameTimer; @JsonProperty("gameTimerTimes") private int gameTimerTimes; @JsonProperty("gameTimerFirstThinkingTimes") private int gameTimerFirstThinkingTimes; //-------------------------------------------------------------------- //コンストラクタで初期値設定 public Settings(){ drawingTimer = false; drawingTimerTimes = 0; gameTimer = true; gameTimerTimes = 30; gameTimerFirstThinkingTimes = 10; } //-------------------------------------------------------------------- //setter & getter public boolean isDrawingTimer() { return drawingTimer; } public void setDrawingTimer(boolean drawingTimer) { this.drawingTimer = drawingTimer; } public int getDrawingTimerTimes() { return drawingTimerTimes; } public void setDrawingTimerTimes(int drawingTimerTimes) { this.drawingTimerTimes = drawingTimerTimes; } public boolean isGameTimer() { return gameTimer; } public void setGameTimer(boolean gameTimer) { this.gameTimer = gameTimer; } public int getGameTimerTimes() { return gameTimerTimes; } public void setGameTimerTimes(int gameTimerTimes) { this.gameTimerTimes = gameTimerTimes; } public int getGameTimerFirstThinkingTimes() { return gameTimerFirstThinkingTimes; } public void setGameTimerFirstThinkingTimes(int gameTimerFirstThinkingTimes) { this.gameTimerFirstThinkingTimes = gameTimerFirstThinkingTimes; } }