diff --git a/src/main/java/com/ntlab/irisserver/entities/Room.java b/src/main/java/com/ntlab/irisserver/entities/Room.java index fc9d96a..501cc46 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Room.java +++ b/src/main/java/com/ntlab/irisserver/entities/Room.java @@ -2,8 +2,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import java.util.*; + public class Room { @JsonProperty("rid") public String rid; @@ -28,6 +31,7 @@ + public Room(String rid, String owner) { this.rid=rid; ownerName=owner; @@ -39,6 +43,7 @@ public List getMembers() { + List memberslist = new ArrayList(members.values()) ; return memberslist; @@ -102,7 +107,8 @@ } - public Game createGame() { + public Game createGame(String owner) { + return null; } @@ -125,8 +131,8 @@ members.remove(nick); } - public int getStateRest() { - return 0; + public int getState() { + return state; } }