Package de.pokerth.protocol.ProtoBuf

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


    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

Related Classes of de.pokerth.protocol.ProtoBuf.InitAckMessage

Copyright © 2018 www.massapicom. 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.