Newer
Older
IrisServerWebSocket / src / main / java / com / ntlab / irisserver / entities / Cell.java
Kota on 8 Dec 2022 895 bytes first commit
package com.ntlab.irisserver.entities;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Cell {

    @JsonProperty("isOpen")
    private boolean isOpen; //trueが空いてる、falseは空いてない

    @JsonProperty("color")
    public String color;

    @JsonProperty("dno")
    public int dno;

    @JsonProperty("cno")
    public int cno;

    //コンストラクタ
    public Cell(){
        isOpen = false;
    }

    //setter
    public void setIsOpen(boolean isOpen) {this.isOpen = isOpen;}

    public void setColor(String color) {this.color = color;}

    public void setDno(int dno) {this.dno = dno;}

    public void setCno(int cno) {this.cno = cno;}

    //getter
    public boolean getIsOpen() {return this.isOpen;}

    public String getColor() {return this.color;}

    public int getDno() {return this.dno;}

    public int getCno() {return this.cno;}
}