Message msg = new Message(MessageType.NEW_TRICK);
return msg;
}
private Message handleNewTrump(NewTrumpEvent e) {
Message msg = new Message(MessageType.NEW_TRUMP);
Card card = e.getCard();
if(card != null) {
msg.addMsgParam(new MessageParam(MessageParamConstants.SUIT, card.getSuit().getShortName()));
if(card.getValue() != null) {
msg.addMsgParam(new MessageParam(MessageParamConstants.VALUE, card.getValue().getShortNm()));
}
msg.addMsgParam(new MessageParam(MessageParamConstants.INDEX, String.valueOf(card.getIndex())));
}
return msg;
}