diff --git a/src/main/java/com/ntlab/irisserver/resources/MemberRest.java b/src/main/java/com/ntlab/irisserver/resources/MemberRest.java index 8b31b8a..6c6d62b 100644 --- a/src/main/java/com/ntlab/irisserver/resources/MemberRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/MemberRest.java @@ -18,7 +18,6 @@ @FormParam("belongs") String belongs, @FormParam("is-master") boolean is_master) { RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid); - List m = room.getMembers(); room.changeTeamAndMaster(nickname, belongs, is_master); return "変更しました"; } @@ -26,18 +25,10 @@ // プレイヤーを退出させるメソッド @Path("/{rid}/members/{nickname}") @DELETE - public String deleteMember(@PathParam("rid") String rid, @PathParam("nickname") String nickname, - @FormParam("belongs") String belongs, @FormParam("is-master") boolean is_master) { + public String deleteMember(@PathParam("rid") String rid, @PathParam("nickname") String nickname) { RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid); - List m = room.getMembers(); - for( int i = 0; i < 10; i++ ) { - Member name = m.get(i); - if ( nickname.equals(name.getNickname()) ) { - //room.deleteMember(nickname, belongs, is_master); - } - } - + room.deleteMember(nickname); return "退出しました"; } } \ No newline at end of file