diff --git a/src/main/java/com/ntlab/irisserver/entities/Room.java b/src/main/java/com/ntlab/irisserver/entities/Room.java index d2d6d3d..d815e53 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Room.java +++ b/src/main/java/com/ntlab/irisserver/entities/Room.java @@ -1,6 +1,8 @@ package com.ntlab.irisserver.entities; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; public class Room { @@ -16,14 +18,15 @@ Map members= new HashMap<>(); - public Member getMembers(String nick) { - Member m = members.get(nick); - return m; + public List getMembers() { + + List memberslist = new ArrayList(members.values()) ; + return memberslist; } public Member getMember(String nick) { - Member m = new Member(nick); + Member m = members.get(nick); return m; } @@ -32,4 +35,9 @@ m.setNickname(nick); members.put(nick,m); } + public int getStateRest(){ + return 0; + } + public Room(String rid, String owner) { + } }