Newer
Older
IrisServer / src / main / java / com / ntlab / irisserver / entities / RoomJson.java
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;}

    //setter
    public void setRid(String rid) {this.rid = rid;}

    public void setState(Integer state) {this.state = state;}

    public void setOwnerName(String ownerName) {this.ownerName = ownerName;}

}