Package de.pokerth.protocol.ProtoBuf

Examples of de.pokerth.protocol.ProtoBuf.ChatRequestMessage


public class ChatTest extends TestBase {

  final String ChatText = "Hello World ÖÄÜöäüẞ€";

  PokerTHMessage createLobbyChatMsg(String chatText) {
    ChatRequestMessage chatLobby = ChatRequestMessage.newBuilder()
      .setChatText(chatText)
      .build();
    PokerTHMessage msg = PokerTHMessage.newBuilder()
        .setMessageType(PokerTHMessageType.Type_ChatRequestMessage)
        .setChatRequestMessage(chatLobby)
View Full Code Here


        .build();
    return msg;
  }

  PokerTHMessage createGameChatMsg(String chatText, int gameId) {
    ChatRequestMessage chatGame = ChatRequestMessage.newBuilder()
        .setChatText(chatText)
        .setTargetGameId(gameId)
        .build();
    PokerTHMessage msg = PokerTHMessage.newBuilder()
        .setMessageType(PokerTHMessageType.Type_ChatRequestMessage)
View Full Code Here

        .build();
    return msg;
  }

  PokerTHMessage createPrivateChatMsg(String chatText, int playerId) {
    ChatRequestMessage chatPrivate = ChatRequestMessage.newBuilder()
        .setChatText(chatText)
        .setTargetPlayerId(playerId)
        .build();
    PokerTHMessage msg = PokerTHMessage.newBuilder()
        .setMessageType(PokerTHMessageType.Type_ChatRequestMessage)
View Full Code Here

TOP

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

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.