Examples of InitAckMessage


Examples of de.pokerth.protocol.ProtoBuf.InitAckMessage

      .build();
    sendMessage(msg, s);

    msg = receiveMessage(s);
    if (msg.hasInitAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_InitAckMessage) {
      InitAckMessage initAck = msg.getInitAckMessage();
      assertTrue(initAck.getYourPlayerId() != 0L);
      assertTrue(!initAck.hasYourAvatarHash());
      playerId = initAck.getYourPlayerId();
    }
    else {
      failOnErrorMessage(msg);
      fail("Invalid message.");
    }
View Full Code Here

Examples of de.pokerth.protocol.ProtoBuf.InitAckMessage

    msg = receiveMessage(s);
    failOnErrorMessage(msg);

    msg = receiveMessage(s);
    if (msg.hasInitAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_InitAckMessage) {
      InitAckMessage initAck = msg.getInitAckMessage();
      assertTrue(initAck.getYourPlayerId() != 0L);
      assertTrue(!initAck.hasYourAvatarHash());
      playerId = initAck.getYourPlayerId();
      if (lastSessionId != null) {
        lastSessionId.value = initAck.getYourSessionId().toByteArray();
      }
      if (initAck.hasRejoinGameId()) {
        lastRejoinGameId = initAck.getRejoinGameId();
      }
      else {
        lastRejoinGameId = 0;
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.