Commit 48e08946 authored by dkonam's avatar dkonam
Browse files

send role

parent 820ea067
......@@ -295,6 +295,7 @@ public class GameMediator {
* @param role role of the new user
*/
public void updateGameList(LightPublicUser user, String id, String role) throws DataException {
System.out.println("id "+id);
if(user == null)
{
System.out.println("user is null");
......@@ -309,11 +310,13 @@ public class GameMediator {
System.out.println("add Urole "+role);
System.out.println("add Urole "+role);
this.getCurrentGame().addUser(user, role);
if (this.dataFacade.getComfacade() != null) {
this.dataFacade.getComfacade().joinGameResponse(true, user.getId(), this.currentGame);
System.out.println("data join game resp");
this.dataFacade.getComfacade().joinGameResponse(true, user.getId(), this.currentGame.getStatGame());
}
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment