package com.ntlab.irisserver.entities; import com.fasterxml.jackson.annotation.JsonProperty; public class Member { @JsonProperty("nickname") private String nickname; //r:赤チーム b:青チーム n:無所属 @JsonProperty("belongs") private String belongs; @JsonProperty("master") private boolean master; //----------------------------------------------------------------- //コンストラクト public Member(String nickname) { this.nickname = nickname; this.belongs = "n"; this.master = false; } //----------------------------------------------------------------- // setter public void setNickname(String nickname) {this.nickname = nickname;} public void setBelongs(String belongs) {this.belongs = belongs;} public void setMaster(boolean master) {this.master = master;} //----------------------------------------------------------------- // getter public String getNickname() {return this.nickname;} public String getBelongs() {return this.belongs;} public boolean isMaster() {return this.master;} }