public void onMoveCompleted(MoveEvent moveEvent) { if (moveEvent.getRoomId().Equals(GlobalContext.GameRoomId)) { if(moveEvent.getMoveData()!=null) MoveMessage.buildMessage(System.Text.Encoding.UTF8.GetBytes(moveEvent.getMoveData())); if (moveEvent.getNextTurn().ToString().Equals(GlobalContext.localUsername)) { GlobalContext.IsMyTurn = true; if (RemoteUserPaused != null) Deployment.Current.Dispatcher.BeginInvoke(new UICallback(ChangeTurnCallback)); } else { GlobalContext.IsMyTurn = false; if (RemoteUserPaused != null) Deployment.Current.Dispatcher.BeginInvoke(new UICallback(ChangeTurnCallback)); } } }