return null;
} else if (message instanceof UpdateDataRequestMessage) {
UpdateDataRequestMessage updateDataRequestMessage =
(UpdateDataRequestMessage) message;
UpdateDataResponseMessage m = new UpdateDataResponseMessage();
m.setResponseType(AuthenticationService.update(
this.getClient().getUserName(),
updateDataRequestMessage.getOldPassword(),
updateDataRequestMessage.getPassword(),
updateDataRequestMessage.getEmail()));
this.getClient().send(m);
return this;
} else if (message instanceof ScoreRequestMessage) {
ScoreRequestMessage requestMessage = (ScoreRequestMessage) message;
ScoreResponseMessage responseMessage =
HighscoreService.getScoreMessage(requestMessage.getPlayerName());
this.getClient().send(responseMessage);
return this;
} else if (message instanceof DeleteRequestMessage) {
DeleteResponseMessage m = new DeleteResponseMessage();
m.setResponseType(AuthenticationService.delete(
this.getClient().getUserName()));
this.getClient().send(m);
return this;
} else if (message instanceof GameMessage) {
try {