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 RoomJson { @JsonProperty("rid") private String rid; @JsonProperty("state") private int state; @JsonProperty("ownerName") private String ownerName; @JsonProperty("members") List<Member> members = new ArrayList<>(); //コンストラクター public RoomJson(Room r){ this.rid = r.rid; this.ownerName = r.ownerName; this.state = r.getState(); this.members = r.getMembers(); } //getter public String getRid() {return this.rid;} public int getState() {return this.state;} public String getOwnerName() {return this.ownerName;} public List<Member> getMembers() {return this.members;} }