In the process of fixing the Java test cases for google protocol buffers.

This commit is contained in:
lotodore
2012-09-20 20:55:21 +02:00
parent 78490f2b72
commit c752b17c9f
148 changed files with 57060 additions and 21642 deletions
+3
View File
@@ -16,6 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * * along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/ *****************************************************************************/
option java_package = "de.pokerth.protocol";
option java_outer_classname = "ProtoBuf";
// Enumerations used by several messages. // Enumerations used by several messages.
enum NetGameMode { enum NetGameMode {
File diff suppressed because it is too large Load Diff
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import org.junit.internal.TextListener; import org.junit.internal.TextListener;
import org.junit.runner.JUnitCore; import org.junit.runner.JUnitCore;
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@@ -24,25 +24,26 @@ import java.net.Socket;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.AnnounceMessage; import de.pokerth.protocol.ProtoBuf.AnnounceMessage;
import pokerth_protocol.PokerTHMessage; import de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType;
import pokerth_protocol.AnnounceMessage.AnnounceMessageSequenceType.ServerTypeEnumType; import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType;
public class AnnounceTest extends TestBase { public class AnnounceTest extends TestBase {
protected void TestAnnounceMsg(AnnounceMessage announce, int numPlayersOnServer) { protected void TestAnnounceMsg(AnnounceMessage announce, int numPlayersOnServer) {
assertEquals(PROTOCOL_VERSION_MAJOR, announce.getValue().getProtocolVersion().getMajor().intValue()); assertEquals(PROTOCOL_VERSION_MAJOR, announce.getProtocolVersion().getMajor());
assertEquals(PROTOCOL_VERSION_MINOR, announce.getValue().getProtocolVersion().getMinor().intValue()); assertEquals(PROTOCOL_VERSION_MINOR, announce.getProtocolVersion().getMinor());
assertEquals(ServerTypeEnumType.EnumType.serverTypeInternetAuth, announce.getValue().getServerType().getValue()); assertEquals(ServerType.serverTypeInternetAuth, announce.getServerType());
assertEquals(numPlayersOnServer, announce.getValue().getNumPlayersOnServer().intValue()); assertEquals(numPlayersOnServer, announce.getNumPlayersOnServer());
} }
@Test @Test
public void testAnnounce() throws Exception { public void testAnnounce() throws Exception {
PokerTHMessage msg = receiveMessage(); PokerTHMessage msg = receiveMessage();
assertTrue(msg.isAnnounceMessageSelected()); assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage);
TestAnnounceMsg(msg.getAnnounceMessage(), 0); TestAnnounceMsg(msg.getAnnounceMessage(), 0);
// numPlayersOnServer should only be incremented after login. // numPlayersOnServer should only be incremented after login.
@@ -50,7 +51,7 @@ public class AnnounceTest extends TestBase {
for (int i = 0; i < 9; i++) { for (int i = 0; i < 9; i++) {
s[i] = new Socket("localhost", 7234); s[i] = new Socket("localhost", 7234);
msg = receiveMessage(s[i]); msg = receiveMessage(s[i]);
assertTrue(msg.isAnnounceMessageSelected()); assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage);
// Without login: Counter stays at 0. // Without login: Counter stays at 0.
TestAnnounceMsg(msg.getAnnounceMessage(), 0); TestAnnounceMsg(msg.getAnnounceMessage(), 0);
} }
@@ -65,7 +66,7 @@ public class AnnounceTest extends TestBase {
sock.close(); sock.close();
sock = new Socket("localhost", 7234); sock = new Socket("localhost", 7234);
msg = receiveMessage(); msg = receiveMessage();
assertTrue(msg.isAnnounceMessageSelected()); assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage);
// After login: Counter is incremented. // After login: Counter is incremented.
TestAnnounceMsg(msg.getAnnounceMessage(), i + 1); TestAnnounceMsg(msg.getAnnounceMessage(), i + 1);
} }
@@ -77,7 +78,7 @@ public class AnnounceTest extends TestBase {
sock.close(); sock.close();
sock = new Socket("localhost", 7234); sock = new Socket("localhost", 7234);
msg = receiveMessage(); msg = receiveMessage();
assertTrue(msg.isAnnounceMessageSelected()); assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage);
// After login: Counter is incremented. // After login: Counter is incremented.
TestAnnounceMsg(msg.getAnnounceMessage(), 9); TestAnnounceMsg(msg.getAnnounceMessage(), 9);
} }
@@ -90,7 +91,7 @@ public class AnnounceTest extends TestBase {
sock.close(); sock.close();
sock = new Socket("localhost", 7234); sock = new Socket("localhost", 7234);
msg = receiveMessage(); msg = receiveMessage();
assertTrue(msg.isAnnounceMessageSelected()); assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage);
// After login: Counter is incremented. // After login: Counter is incremented.
TestAnnounceMsg(msg.getAnnounceMessage(), 8 - i); TestAnnounceMsg(msg.getAnnounceMessage(), 8 - i);
} }
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import org.junit.Test; import org.junit.Test;
@@ -14,7 +14,7 @@
//Please contact the author if you need another license. //Please contact the author if you need another license.
//This module is provided "as is", without warranties of any kind. //This module is provided "as is", without warranties of any kind.
package pokerth_test; package de.pokerth.test;
/** /**
* A Base64 encoder/decoder. * A Base64 encoder/decoder.
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@@ -25,15 +25,14 @@ import java.sql.Statement;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.AnnounceMessage; import com.google.protobuf.ByteString;
import pokerth_protocol.AuthenticatedLogin;
import pokerth_protocol.InitMessage; import de.pokerth.protocol.ProtoBuf.AnnounceMessage;
import pokerth_protocol.PokerTHMessage; import de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason;
import pokerth_protocol.Version; import de.pokerth.protocol.ProtoBuf.InitMessage;
import pokerth_protocol.AnnounceMessage.AnnounceMessageSequenceType.ServerTypeEnumType; import de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType;
import pokerth_protocol.ErrorMessage.ErrorMessageSequenceType.ErrorReasonEnumType; import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType;
import pokerth_protocol.InitMessage.InitMessageSequenceType; import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
import pokerth_protocol.InitMessage.InitMessageSequenceType.LoginChoiceType;
public class BlockedPlayerTest extends TestBase { public class BlockedPlayerTest extends TestBase {
@@ -41,31 +40,31 @@ public class BlockedPlayerTest extends TestBase {
void verifyLoginBlocked() throws Exception { void verifyLoginBlocked() throws Exception {
PokerTHMessage msg = receiveMessage(sock); PokerTHMessage msg = receiveMessage(sock);
AnnounceMessage announce = msg.getAnnounceMessage(); AnnounceMessage announce = msg.getAnnounceMessage();
assertTrue(announce.getValue().getServerType().getValue() == ServerTypeEnumType.EnumType.serverTypeInternetAuth); assertTrue(announce.getServerType() == ServerType.serverTypeInternetAuth);
ScramSha1 scramAuth = new ScramSha1(); ScramSha1 scramAuth = new ScramSha1();
// Send challenge. // Send challenge.
Version requestedVersion = new Version(); AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder()
requestedVersion.setMajor(PROTOCOL_VERSION_MAJOR); .setMajor(PROTOCOL_VERSION_MAJOR)
requestedVersion.setMinor(PROTOCOL_VERSION_MINOR); .setMinor(PROTOCOL_VERSION_MINOR)
AuthenticatedLogin authLogin = new AuthenticatedLogin(); .build();
authLogin.setClientUserData(scramAuth.executeStep1("test1").getBytes()); InitMessage init = InitMessage.newBuilder()
LoginChoiceType loginType = new LoginChoiceType(); .setBuildId(0)
loginType.selectAuthenticatedLogin(authLogin); .setLogin(InitMessage.LoginType.authenticatedLogin)
InitMessageSequenceType msgType = new InitMessageSequenceType(); .setRequestedVersion(requestedVersion)
msgType.setBuildId(0L); .setClientUserData(ByteString.copyFromUtf8(scramAuth.executeStep1("test1")))
msgType.setLogin(loginType); .build();
msgType.setRequestedVersion(requestedVersion);
InitMessage init = new InitMessage(); msg = PokerTHMessage.newBuilder()
init.setValue(msgType); .setMessageType(PokerTHMessageType.Type_InitMessage)
msg = new PokerTHMessage(); .setInitMessage(init)
msg.selectInitMessage(init); .build();
sendMessage(msg, sock); sendMessage(msg, sock);
msg = receiveMessage(sock); msg = receiveMessage(sock);
assertTrue(msg.isErrorMessageSelected()); assertTrue(msg.hasErrorMessage() && msg.getMessageType() == PokerTHMessageType.Type_ErrorMessage);
assertEquals(ErrorReasonEnumType.EnumType.errorBlockedByServer, msg.getErrorMessage().getValue().getErrorReason().getValue()); assertEquals(ErrorReason.blockedByServer, msg.getErrorMessage().getErrorReason());
} }
@Test @Test
+269
View File
@@ -0,0 +1,269 @@
/* PokerTH automated tests.
Copyright (C) 2010 Lothar May
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.pokerth.test;
import static org.junit.Assert.*;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Test;
import de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType;
import de.pokerth.protocol.ProtoBuf.ChatRequestMessage;
import de.pokerth.protocol.ProtoBuf.NetGameInfo;
import de.pokerth.protocol.ProtoBuf.StartEventAckMessage;
import de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
import de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType;
import de.pokerth.protocol.ProtoBuf.StartEventMessage;
import de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType;
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)
.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)
.setChatRequestMessage(chatGame)
.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)
.setChatRequestMessage(chatPrivate)
.build();
return msg;
}
@Test
public void testChat() throws Exception {
guestInit();
Socket s[] = new Socket[8];
int playerId[] = new int[8];
for (int i = 0; i < 8; i++) {
s[i] = new Socket("localhost", 7234);
String username = "test" + (i+1);
String password = username;
playerId[i] = userInit(s[i], username, password);
}
PokerTHMessage msg = createLobbyChatMsg(ChatText + 1);
// Message as guest user should be rejected.
sendMessage(msg);
do {
msg = receiveMessage();
} while (msg.hasPlayerListMessage());
assertTrue(msg.hasChatRejectMessage());
assertEquals(ChatText + 1, msg.getChatRejectMessage().getChatText());
// Message as registered user should be sent to other users and guests.
msg = createLobbyChatMsg(ChatText + 2);
sendMessage(msg, s[0]);
msg = receiveMessage();
assertTrue(msg.hasChatMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatMessage);
assertEquals(ChatText + 2, msg.getChatMessage().getChatText());
assertEquals(ChatType.chatTypeLobby, msg.getChatMessage().getChatType());
assertEquals(playerId[0], msg.getChatMessage().getPlayerId());
for (int i = 0; i < 8; i++) {
do {
msg = receiveMessage(s[i]);
} while (msg.hasPlayerListMessage());
assertTrue(msg.hasChatMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatMessage);
assertEquals(ChatText + 2, msg.getChatMessage().getChatText());
assertEquals(ChatType.chatTypeLobby, msg.getChatMessage().getChatType());
assertEquals(playerId[0], msg.getChatMessage().getPlayerId());
}
// A game chat message, if not within a game, should be rejected.
msg = createGameChatMsg(ChatText + 3, 1);
sendMessage(msg);
msg = receiveMessage();
assertTrue(msg.hasChatRejectMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage);
assertEquals(ChatText + 3, msg.getChatRejectMessage().getChatText());
msg = createGameChatMsg(ChatText + 4, 1);
sendMessage(msg, s[0]);
msg = receiveMessage(s[0]);
assertTrue(msg.hasChatRejectMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage);
assertEquals(ChatText + 4, msg.getChatRejectMessage().getChatText());
// Guests are not allowed to send private messages in the lobby.
msg = createPrivateChatMsg(ChatText + 5, playerId[1]);
sendMessage(msg);
msg = receiveMessage();
assertTrue(msg.hasChatRejectMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage);
assertEquals(ChatText + 5, msg.getChatRejectMessage().getChatText());
// Registered users are allowed to send private messages in the lobby.
msg = createPrivateChatMsg(ChatText + 6, playerId[1]);
sendMessage(msg, s[0]);
msg = receiveMessage(s[1]);
assertTrue(msg.hasChatMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatMessage);
assertEquals(ChatText + 6, msg.getChatMessage().getChatText());
assertEquals(ChatType.chatTypePrivate, msg.getChatMessage().getChatType());
assertEquals(playerId[0], msg.getChatMessage().getPlayerId());
// Game messages can be sent by registered users within a game.
Collection<Integer> l = new ArrayList<Integer>();
NetGameInfo gameInfo = createGameInfo(NetGameType.normalGame, 10, 5, 5, EndRaiseMode.doubleBlinds, 0, 100, GuestUser + " game list normal game", l, 10, 0, 2, 2000);
sendMessage(createGameRequestMsg(
gameInfo,
"",
false));
do {
msg = receiveMessage();
failOnErrorMessage(msg);
} while (!msg.hasJoinGameAckMessage() && !msg.hasJoinGameFailedMessage());
assertTrue(msg.hasJoinGameAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_JoinGameAckMessage);
int gameId = msg.getJoinGameAckMessage().getGameId();
// Let 8 players join the game, and test game chat.
for (int i = 0; i < 8; i++) {
sendMessage(joinGameRequestMsg(gameId, "", false), s[i]);
do {
msg = receiveMessage(s[i]);
failOnErrorMessage(msg);
} while (!msg.hasJoinGameAckMessage() && !msg.hasJoinGameFailedMessage());
assertTrue(msg.hasJoinGameAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_JoinGameAckMessage);
}
StartEventMessage startEvent = StartEventMessage.newBuilder()
.setGameId(gameId)
.setFillWithComputerPlayers(false)
.setStartEventType(StartEventType.startEvent)
.build();
msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_StartEventMessage)
.setStartEventMessage(startEvent)
.build();
sendMessage(msg);
// Server should confirm start event.
do {
msg = receiveMessage();
failOnErrorMessage(msg);
} while (!msg.hasStartEventMessage());
// Acknowledge start event.
StartEventAckMessage startAck = StartEventAckMessage.newBuilder()
.setGameId(gameId)
.build();
msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_StartEventAckMessage)
.setStartEventAckMessage(startAck)
.build();
sendMessage(msg);
for (int i = 0; i < 8; i++) {
sendMessage(msg, s[i]);
}
// Server should game start.
do {
msg = receiveMessage();
failOnErrorMessage(msg);
} while (!msg.hasGameStartInitialMessage());
// Guest user: not allowed.
msg = createGameChatMsg(ChatText + 7, gameId);
sendMessage(msg);
do {
msg = receiveMessage();
failOnErrorMessage(msg);
assertFalse(msg.hasChatMessage());
} while (!msg.hasChatRejectMessage());
assertEquals(ChatText + 7, msg.getChatRejectMessage().getChatText());
// Other users: allowed.
for (int c = 0; c < 8; c++) {
msg = createGameChatMsg(ChatText + "c" + c, gameId);
sendMessage(msg, s[c]);
do {
msg = receiveMessage(s[c]);
failOnErrorMessage(msg);
assertFalse(msg.hasChatRejectMessage() || msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage);
} while (!msg.hasChatMessage());
assertEquals(ChatText + "c" + c, msg.getChatMessage().getChatText());
assertEquals(ChatType.chatTypeGame, msg.getChatMessage().getChatType());
assertEquals(playerId[c], msg.getChatMessage().getPlayerId());
assertEquals(gameId, msg.getChatMessage().getGameId());
for (int i = 0; i < 8; i++) {
if (i != c) {
do {
msg = receiveMessage(s[i]);
failOnErrorMessage(msg);
assertFalse(msg.hasChatRejectMessage() || msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage);
} while (!msg.hasChatMessage());
assertEquals(ChatText + "c" + c, msg.getChatMessage().getChatText());
assertEquals(ChatType.chatTypeGame, msg.getChatMessage().getChatType());
assertEquals(playerId[c], msg.getChatMessage().getPlayerId());
assertEquals(gameId, msg.getChatMessage().getGameId());
}
}
}
// Private chat message should now be rejected.
msg = createPrivateChatMsg(ChatText + 8, playerId[1]);
sendMessage(msg, s[0]);
do {
msg = receiveMessage(s[0]);
failOnErrorMessage(msg);
assertFalse(msg.hasChatMessage() || msg.getMessageType() == PokerTHMessageType.Type_ChatMessage);
} while (!msg.hasChatRejectMessage());
for (int i = 0; i < 8; i++) {
s[i].close();
}
}
}
@@ -0,0 +1,94 @@
/* PokerTH automated tests.
Copyright (C) 2010 Lothar May
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.pokerth.test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import org.junit.Test;
import de.pokerth.protocol.ProtoBuf.NetGameInfo;
import de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType;
public class CreateGameTest extends TestBase {
@Test
public void testJoinGameRequestMessage() throws Exception {
guestInit();
Collection<Integer> l = new ArrayList<Integer>();
l.add(250);
l.add(600);
l.add(1000);
NetGameInfo gameInfo = createGameInfo(NetGameInfo.NetGameType.normalGame, 20, 7, 8, EndRaiseMode.raiseByEndValue, 1000, 100, GuestUser + " create test game", l, 10, 0, 7, 2000);
sendMessage(createGameRequestMsg(
gameInfo,
GamePassword,
false));
PokerTHMessage msg;
msg = receiveMessage();
if (!msg.hasPlayerListMessage() || msg.getMessageType() != PokerTHMessageType.Type_PlayerListMessage) {
failOnErrorMessage(msg);
fail("Invalid message.");
}
msg = receiveMessage();
if (!msg.hasGameListNewMessage() || msg.getMessageType() != PokerTHMessageType.Type_GameListNewMessage) {
failOnErrorMessage(msg);
fail("Invalid message.");
}
msg = receiveMessage();
if (msg.hasJoinGameAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_JoinGameAckMessage)
{
assertTrue(msg.getJoinGameAckMessage().getGameId() != 0);
NetGameInfo receivedGameInfo = msg.getJoinGameAckMessage().getGameInfo();
assertEquals(receivedGameInfo.getDelayBetweenHands(), gameInfo.getDelayBetweenHands());
assertEquals(receivedGameInfo.getEndRaiseMode(), gameInfo.getEndRaiseMode());
assertEquals(receivedGameInfo.getEndRaiseSmallBlindValue(), gameInfo.getEndRaiseSmallBlindValue());
assertEquals(receivedGameInfo.getFirstSmallBlind(), gameInfo.getFirstSmallBlind());
assertEquals(receivedGameInfo.getGameName(), gameInfo.getGameName());
assertEquals(receivedGameInfo.getManualBlindsCount(), gameInfo.getManualBlindsCount());
for (Iterator<Integer> rec_it = receivedGameInfo.getManualBlindsList().iterator(),
game_it = gameInfo.getManualBlindsList().iterator();
rec_it.hasNext() && game_it.hasNext();)
{
assertEquals(rec_it.next(), game_it.next());
}
assertEquals(receivedGameInfo.getMaxNumPlayers(), gameInfo.getMaxNumPlayers());
assertEquals(receivedGameInfo.getNetGameType(), gameInfo.getNetGameType());
assertEquals(receivedGameInfo.getPlayerActionTimeout(), gameInfo.getPlayerActionTimeout());
assertEquals(receivedGameInfo.getProposedGuiSpeed(), gameInfo.getProposedGuiSpeed());
assertEquals(receivedGameInfo.getRaiseIntervalMode(), gameInfo.getRaiseIntervalMode());
assertEquals(receivedGameInfo.getRaiseEveryHands(), gameInfo.getRaiseEveryHands());
assertEquals(receivedGameInfo.getRaiseEveryMinutes(), gameInfo.getRaiseEveryMinutes());
assertEquals(receivedGameInfo.getStartMoney(), gameInfo.getStartMoney());
}
else {
failOnErrorMessage(msg);
fail("Invalid message.");
}
}
}
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.*; import static org.junit.Assert.*;
@@ -24,9 +24,10 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*; import de.pokerth.protocol.ProtoBuf.NetGameInfo;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; import de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; import de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
public class CreateRankingGameTest extends TestBase { public class CreateRankingGameTest extends TestBase {
@@ -35,13 +36,10 @@ public class CreateRankingGameTest extends TestBase {
private void createRankingGame(String password) throws Exception { private void createRankingGame(String password) throws Exception {
counter++; counter++;
Collection<InitialNonZeroAmountOfMoney> l = new ArrayList<InitialNonZeroAmountOfMoney>(); Collection<Integer> l = new ArrayList<Integer>();
NetGameInfo gameInfo = createGameInfo(8, EndRaiseModeEnumType.EnumType.doubleBlinds, 0, 50, GuestUser + " create ranking game " + counter, l, 10, 0, 11, 10000); NetGameInfo gameInfo = createGameInfo(NetGameType.rankingGame, 20, 7, 8, EndRaiseMode.doubleBlinds, 0, 50, GuestUser + " create ranking game " + counter, l, 10, 0, 11, 10000);
sendMessage(createGameRequestMsg( sendMessage(createGameRequestMsg(
gameInfo, gameInfo,
NetGameTypeEnumType.EnumType.rankingGame,
20,
7,
password, password,
false)); false));
} }
@@ -52,7 +50,7 @@ public class CreateRankingGameTest extends TestBase {
PokerTHMessage msg; PokerTHMessage msg;
msg = receiveMessage(); msg = receiveMessage();
if (!msg.isPlayerListMessageSelected()) { if (!msg.hasPlayerListMessage()) {
failOnErrorMessage(msg); failOnErrorMessage(msg);
fail("Invalid message."); fail("Invalid message.");
} }
@@ -60,16 +58,10 @@ public class CreateRankingGameTest extends TestBase {
createRankingGame(""); createRankingGame("");
msg = receiveMessage(); msg = receiveMessage();
if (msg.isJoinGameReplyMessageSelected()) if (!msg.hasJoinGameFailedMessage())
{ {
if (!msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameFailedSelected())
{
fail("Guest user could create ranking game!");
}
}
else {
failOnErrorMessage(msg); failOnErrorMessage(msg);
fail("Invalid message."); fail("Guest user could create ranking game!");
} }
} }
@@ -80,7 +72,7 @@ public class CreateRankingGameTest extends TestBase {
// Waiting for player list update. // Waiting for player list update.
PokerTHMessage msg; PokerTHMessage msg;
msg = receiveMessage(); msg = receiveMessage();
if (!msg.isPlayerListMessageSelected()) { if (!msg.hasPlayerListMessage()) {
failOnErrorMessage(msg); failOnErrorMessage(msg);
fail("Invalid message."); fail("Invalid message.");
} }
@@ -88,10 +80,10 @@ public class CreateRankingGameTest extends TestBase {
createRankingGame(""); createRankingGame("");
msg = receiveMessage(); msg = receiveMessage();
if (msg.isGameListMessageSelected()) if (msg.hasGameListNewMessage())
{ {
msg = receiveMessage(); msg = receiveMessage();
if (msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameFailedSelected()) if (msg.hasJoinGameFailedMessage())
{ {
fail("Registered user could not join ranking game!"); fail("Registered user could not join ranking game!");
} }
@@ -109,7 +101,7 @@ public class CreateRankingGameTest extends TestBase {
// Waiting for player list update. // Waiting for player list update.
PokerTHMessage msg; PokerTHMessage msg;
msg = receiveMessage(); msg = receiveMessage();
if (!msg.isPlayerListMessageSelected()) { if (!msg.hasPlayerListMessage()) {
failOnErrorMessage(msg); failOnErrorMessage(msg);
fail("Invalid message."); fail("Invalid message.");
} }
@@ -117,16 +109,10 @@ public class CreateRankingGameTest extends TestBase {
createRankingGame(GamePassword); createRankingGame(GamePassword);
msg = receiveMessage(); msg = receiveMessage();
if (msg.isJoinGameReplyMessageSelected()) if (!msg.hasJoinGameFailedMessage())
{
if (!msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameFailedSelected())
{ {
failOnErrorMessage(msg);
fail("Registered user should not be allowed to create ranking game with password!"); fail("Registered user should not be allowed to create ranking game with password!");
} }
} }
else {
failOnErrorMessage(msg);
fail("Invalid message.");
}
}
} }
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@@ -26,15 +26,6 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.GameListMessage;
import pokerth_protocol.GameListNew;
import pokerth_protocol.NetGameInfo;
import pokerth_protocol.NetGameMode;
import pokerth_protocol.PokerTHMessage;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.InitialNonZeroAmountOfMoney;
public class GameListTest extends TestBase { public class GameListTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import org.junit.Test; import org.junit.Test;
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import java.net.Socket; import java.net.Socket;
@@ -26,11 +26,6 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*;
import pokerth_protocol.MyActionRequestMessage.MyActionRequestMessageSequenceType;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
public class LoadTest extends TestBase { public class LoadTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
@@ -26,15 +26,6 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.NetGameInfo;
import pokerth_protocol.PokerTHMessage;
import pokerth_protocol.SubscriptionRequestMessage;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.SubscriptionRequestMessage.SubscriptionRequestMessageSequenceType;
import pokerth_protocol.SubscriptionRequestMessage.SubscriptionRequestMessageSequenceType.SubscriptionActionEnumType;
import pokerth_protocol.InitialNonZeroAmountOfMoney;
public class LobbySubscriptionTest extends TestBase { public class LobbySubscriptionTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import java.net.Socket; import java.net.Socket;
@@ -25,9 +25,6 @@ import java.util.Arrays;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*;
import pokerth_protocol.PlayerInfoRequestMessage.PlayerInfoRequestMessageSequenceType;
public class PlayerInfoTest extends TestBase { public class PlayerInfoTest extends TestBase {
protected void sendPlayerInfoRequest(Socket s, long playerId) throws Exception { protected void sendPlayerInfoRequest(Socket s, long playerId) throws Exception {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@@ -24,10 +24,6 @@ import java.net.Socket;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.PlayerListMessage;
import pokerth_protocol.PokerTHMessage;
import pokerth_protocol.PlayerListMessage.PlayerListMessageSequenceType.PlayerListNotificationEnumType;
public class PlayerListTest extends TestBase { public class PlayerListTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import java.net.Socket; import java.net.Socket;
@@ -26,13 +26,6 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.PlayerListMessage.PlayerListMessageSequenceType.PlayerListNotificationEnumType;
import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType;
public class RejoinGameTest extends TestBase { public class RejoinGameTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import java.net.Socket; import java.net.Socket;
@@ -28,13 +28,6 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.PlayerListMessage.PlayerListMessageSequenceType.PlayerListNotificationEnumType;
import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType;
public class RejoinMultiGameTest extends TestBase { public class RejoinMultiGameTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@@ -27,20 +27,6 @@ import java.util.Iterator;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.NetGameInfo;
import pokerth_protocol.NonZeroId;
import pokerth_protocol.PlayerResult;
import pokerth_protocol.PokerTHMessage;
import pokerth_protocol.StartEvent;
import pokerth_protocol.StartEventAckMessage;
import pokerth_protocol.StartEventMessage;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType;
import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType;
import pokerth_protocol.InitialNonZeroAmountOfMoney;
import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType.StartEventTypeChoiceType;
public class RunNormalGameTest extends TestBase { public class RunNormalGameTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import java.net.Socket; import java.net.Socket;
import java.sql.ResultSet; import java.sql.ResultSet;
@@ -29,13 +29,6 @@ import java.util.Iterator;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.MyActionRequestMessage.MyActionRequestMessageSequenceType;
import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType;
public class RunRankingGameTest extends TestBase { public class RunRankingGameTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@@ -28,16 +28,6 @@ import java.util.Iterator;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.InitialNonZeroAmountOfMoney;
import pokerth_protocol.NetGameInfo;
import pokerth_protocol.NetPlayerState;
import pokerth_protocol.NonZeroId;
import pokerth_protocol.PokerTHMessage;
import pokerth_protocol.StartEventAckMessage;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType;
public class SeatStateTest extends TestBase { public class SeatStateTest extends TestBase {
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package pokerth_test; package de.pokerth.test;
import static org.junit.Assert.*; import static org.junit.Assert.*;
@@ -24,12 +24,6 @@ import java.util.Collection;
import org.junit.Test; import org.junit.Test;
import pokerth_protocol.*;
import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType;
import pokerth_protocol.NetGameInfo.NetGameTypeEnumType;
import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType;
import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType.StartEventTypeChoiceType;
public class StartNormalGameTest extends TestBase { public class StartNormalGameTest extends TestBase {
@Test @Test
+386
View File
@@ -0,0 +1,386 @@
/* PokerTH automated tests.
Copyright (C) 2010 Lothar May
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package de.pokerth.test;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import com.google.protobuf.ByteString;
import java.io.*;
import java.net.*;
import java.security.MessageDigest;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Collection;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import de.pokerth.protocol.ProtoBuf.AnnounceMessage;
import de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType;
import de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage;
import de.pokerth.protocol.ProtoBuf.ErrorMessage;
import de.pokerth.protocol.ProtoBuf.InitAckMessage;
import de.pokerth.protocol.ProtoBuf.InitMessage;
import de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage;
import de.pokerth.protocol.ProtoBuf.JoinNewGameMessage;
import de.pokerth.protocol.ProtoBuf.NetGameInfo;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType;
public abstract class TestBase {
public final int PROTOCOL_VERSION_MAJOR = 5;
public final int PROTOCOL_VERSION_MINOR = 1;
public final String AuthUser = "user";
public final String AuthPassword = "pencil";
public final String GuestUser = "Guest112233";
public final String GamePassword = "äöü?ßÄÖÜ";
protected Socket sock;
protected Connection dbConn;
protected int lastRejoinGameId = 0;
@Before
public void dbInit() throws Exception {
String configFileName = System.getProperty("user.home");
if (System.getProperty("os.name").toLowerCase().indexOf("linux") > -1) {
configFileName += "/.pokerth/config.xml";
} else {
configFileName += "/AppData/Roaming/pokerth/config.xml";
}
File file = new File(configFileName);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(file);
doc.getDocumentElement().normalize();
Element configNode = (Element)doc.getElementsByTagName("Configuration").item(0);
Element dbAddressNode = (Element)configNode.getElementsByTagName("DBServerAddress").item(0);
String dbAddress = dbAddressNode.getAttribute("value");
Element dbUserNode = (Element)configNode.getElementsByTagName("DBServerUser").item(0);
String dbUser = dbUserNode.getAttribute("value");
Element dbPasswordNode = (Element)configNode.getElementsByTagName("DBServerPassword").item(0);
String dbPassword = dbPasswordNode.getAttribute("value");
Element dbNameNode = (Element)configNode.getElementsByTagName("DBServerDatabaseName").item(0);
String dbName = dbNameNode.getAttribute("value");
final String dbUrl = "jdbc:mysql://" + dbAddress + ":3306/" + dbName;
Class.forName("com.mysql.jdbc.Driver").newInstance ();
dbConn = DriverManager.getConnection(dbUrl, dbUser, dbPassword);
}
@After
public void dbClose() throws Exception {
dbConn.close();
}
@Before
public void setUp() throws Exception {
Thread.sleep(2000);
sock = new Socket("localhost", 7234);
}
@After
public void tearDown() throws IOException {
sock.close();
}
public void sendMessage(PokerTHMessage msg) throws Exception {
sendMessage(msg, sock);
}
public void sendMessage(PokerTHMessage msg, Socket s) throws Exception {
int size = msg.getSerializedSize();
byte[] header = new byte[4];
for (int i = 0; i < 4; i++)
{
header[i] = (new Integer(size >>> 24)).byteValue();
size <<= 8;
}
s.getOutputStream().write(header);
s.getOutputStream().write(msg.toByteArray());
}
public PokerTHMessage receiveMessage() throws Exception {
return receiveMessage(sock);
}
public PokerTHMessage receiveMessage(Socket s) throws Exception {
byte[] header = new byte[4];
s.getInputStream().read(header);
int size = 0;
for (int i = 0; i < 4; i++) {
size <<= 8;
size |= (int)header[i];
}
byte[] data = new byte[size];
s.getInputStream().read(data);
return PokerTHMessage.parseFrom(data);
}
public int guestInit() throws Exception {
return guestInit(sock);
}
public int guestInit(Socket s) throws Exception {
int playerId = 0;
PokerTHMessage msg = receiveMessage(s);
assertTrue(msg.hasAnnounceMessage());
AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder()
.setMajor(PROTOCOL_VERSION_MAJOR)
.setMinor(PROTOCOL_VERSION_MINOR)
.build();
InitMessage init = InitMessage.newBuilder()
.setBuildId(0)
.setLogin(InitMessage.LoginType.guestLogin)
.setRequestedVersion(requestedVersion)
.setNickName(GuestUser)
.build();
msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_InitMessage)
.setInitMessage(init)
.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.");
}
return playerId;
}
public int userInit() throws Exception {
return userInit(sock, AuthUser, AuthPassword);
}
public int userInit(Socket s, String user, String password) throws Exception {
return userInit(s, user, password, null, null);
}
public int userInit(Socket s, String user, String password, byte[] avatarData, byte[] lastSessionId) throws Exception {
int playerId = 0;
PokerTHMessage msg = receiveMessage(s);
AnnounceMessage announce = msg.getAnnounceMessage();
assertTrue(announce.getServerType() == ServerType.serverTypeInternetAuth);
ScramSha1 scramAuth = new ScramSha1();
// Send challenge.
AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder()
.setMajor(PROTOCOL_VERSION_MAJOR)
.setMinor(PROTOCOL_VERSION_MINOR)
.build();
InitMessage.Builder initBuilder = InitMessage.newBuilder();
initBuilder
.setBuildId(0)
.setLogin(InitMessage.LoginType.authenticatedLogin)
.setRequestedVersion(requestedVersion)
.setClientUserData(ByteString.copyFromUtf8(scramAuth.executeStep1(user)));
if (avatarData != null) {
initBuilder.setAvatarHash(ByteString.copyFrom(avatarData));
}
if (lastSessionId != null) {
initBuilder.setMyLastSessionId(ByteString.copyFrom(lastSessionId));
}
InitMessage init = initBuilder.build();
msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_InitMessage)
.setInitMessage(init)
.build();
sendMessage(msg, s);
msg = receiveMessage(s);
if (msg.hasAuthServerChallengeMessage() && msg.getMessageType() == PokerTHMessageType.Type_AuthServerChallengeMessage)
{
String serverFirstMessage = new String(msg.getAuthServerChallengeMessage().getServerChallenge().toStringUtf8());
AuthClientResponseMessage authClient = AuthClientResponseMessage.newBuilder()
.setClientResponse(ByteString.copyFromUtf8(scramAuth.executeStep2(password, serverFirstMessage)))
.build();
msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_AuthClientResponseMessage)
.setAuthClientResponseMessage(authClient)
.build();
sendMessage(msg, s);
}
failOnErrorMessage(msg);
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 = initAck.getYourSessionId().toByteArray();
}
if (initAck.hasRejoinGameId()) {
lastRejoinGameId = initAck.getRejoinGameId();
}
else {
lastRejoinGameId = 0;
}
}
else {
failOnErrorMessage(msg);
fail("Invalid message.");
}
return playerId;
}
public PokerTHMessage createGameRequestMsg(NetGameInfo gameInfo, String password, boolean autoLeave) {
JoinNewGameMessage.Builder joinBuilder = JoinNewGameMessage.newBuilder();
joinBuilder.setGameInfo(gameInfo);
joinBuilder.setAutoLeave(autoLeave);
if (!password.isEmpty()) {
joinBuilder.setPassword(password);
}
JoinNewGameMessage joinNew = joinBuilder.build();
PokerTHMessage msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_JoinNewGameMessage)
.setJoinNewGameMessage(joinNew)
.build();
return msg;
}
public PokerTHMessage joinGameRequestMsg(int gameId, String password, boolean autoLeave) {
JoinExistingGameMessage.Builder joinBuilder = JoinExistingGameMessage.newBuilder();
joinBuilder.setGameId(gameId);
joinBuilder.setAutoLeave(autoLeave);
if (!password.isEmpty()) {
joinBuilder.setPassword(password);
}
JoinExistingGameMessage joinExisting = joinBuilder.build();
PokerTHMessage msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_JoinExistingGameMessage)
.setJoinExistingGameMessage(joinExisting)
.build();
return msg;
}
/* public PokerTHMessage rejoinGameRequestMsg(long gameId, boolean autoLeave) {
RejoinExistingGame rejoinExisting = new RejoinExistingGame();
rejoinExisting.setGameId(new NonZeroId(gameId));
JoinGameActionChoiceType joinAction = new JoinGameActionChoiceType();
joinAction.selectRejoinExistingGame(rejoinExisting);
JoinGameRequestMessageSequenceType joinType = new JoinGameRequestMessageSequenceType();
joinType.setJoinGameAction(joinAction);
joinType.setAutoLeave(autoLeave);
JoinGameRequestMessage joinRequest = new JoinGameRequestMessage();
joinRequest.setValue(joinType);
PokerTHMessage msg = new PokerTHMessage();
msg.selectJoinGameRequestMessage(joinRequest);
return msg;
}*/
public NetGameInfo createGameInfo(NetGameInfo.NetGameType gameType, int playerActionTimeout, int proposedGuiSpeed, int delayBetweenHands, NetGameInfo.EndRaiseMode endMode, int endRaiseValue, int sb,
String gameName, Collection<Integer> manualBlinds, int maxNumPlayers, int raiseEveryMinutes, int raiseEveryHands, int startMoney) {
NetGameInfo.RaiseIntervalMode raiseInterval;
if (raiseEveryMinutes > 0) {
raiseInterval = NetGameInfo.RaiseIntervalMode.raiseOnMinutes;
}
else {
raiseInterval = NetGameInfo.RaiseIntervalMode.raiseOnHandNum;
}
NetGameInfo gameInfo = NetGameInfo.newBuilder()
.setNetGameType(gameType)
.setPlayerActionTimeout(playerActionTimeout)
.setProposedGuiSpeed(proposedGuiSpeed)
.setDelayBetweenHands(delayBetweenHands)
.setEndRaiseMode(endMode)
.setEndRaiseSmallBlindValue(endRaiseValue)
.setFirstSmallBlind(sb)
.setGameName(gameName)
.setMaxNumPlayers(maxNumPlayers)
.addAllManualBlinds(manualBlinds)
.setRaiseIntervalMode(raiseInterval)
.setRaiseEveryMinutes(raiseEveryMinutes)
.setRaiseEveryHands(raiseEveryHands)
.setStartMoney(startMoney)
.build();
return gameInfo;
}
void failOnErrorMessage(PokerTHMessage msg) {
if (msg.hasErrorMessage())
{
ErrorMessage error = msg.getErrorMessage();
fail("Received error: " + error.getErrorReason().toString());
}
}
public byte[] decryptCards(final String password, final byte[] ciphertext) throws Exception
{
final MessageDigest shaDigest = MessageDigest.getInstance("SHA-1");
byte[] pw1 = password.getBytes("UTF-8");
byte[] keyHash1 = shaDigest.digest(pw1);
keyHash1 = shaDigest.digest(keyHash1);
byte[] pw2 = new byte[keyHash1.length + pw1.length];
System.arraycopy(keyHash1, 0, pw2, 0, keyHash1.length);
System.arraycopy(pw1, 0, pw2, keyHash1.length, pw1.length);
byte[] keyHash2 = shaDigest.digest(pw2);
keyHash2 = shaDigest.digest(keyHash2);
byte[] key = new byte[16];
System.arraycopy(keyHash1, 0, key, 0, key.length);
byte[] iv = new byte[16];
System.arraycopy(keyHash1, 16, iv, 0, 4);
System.arraycopy(keyHash2, 0, iv, 4, 12);
Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");
cipher.init(
Cipher.DECRYPT_MODE,
new SecretKeySpec(key, "AES"),
new IvParameterSpec(iv));
return cipher.doFinal(ciphertext);
}
}
@@ -1,94 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AfterHandShowCardsMessage" )
public class AfterHandShowCardsMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AfterHandShowCardsMessage" , isSet = false )
public static class AfterHandShowCardsMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "playerResult", isOptional = false , hasTag = false , hasDefaultValue = false )
private PlayerResult playerResult = null;
public PlayerResult getPlayerResult () {
return this.playerResult;
}
public void setPlayerResult (PlayerResult value) {
this.playerResult = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AfterHandShowCardsMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AfterHandShowCardsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AfterHandShowCardsMessageSequenceType.class);
}
@ASN1Element ( name = "AfterHandShowCardsMessage", isOptional = false , hasTag = true, tag = 34,
tagClass = TagClass.Application , hasDefaultValue = false )
private AfterHandShowCardsMessageSequenceType value;
public AfterHandShowCardsMessage () {
}
public void setValue(AfterHandShowCardsMessageSequenceType value) {
this.value = value;
}
public AfterHandShowCardsMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AfterHandShowCardsMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,121 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AllInShowCardsMessage" )
public class AllInShowCardsMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AllInShowCardsMessage" , isSet = false )
public static class AllInShowCardsMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1SequenceOf( name = "playersAllIn", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 10L
)
@ASN1Element ( name = "playersAllIn", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<PlayerAllIn> playersAllIn = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public java.util.Collection<PlayerAllIn> getPlayersAllIn () {
return this.playersAllIn;
}
public void setPlayersAllIn (java.util.Collection<PlayerAllIn> value) {
this.playersAllIn = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AllInShowCardsMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AllInShowCardsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AllInShowCardsMessageSequenceType.class);
}
@ASN1Element ( name = "AllInShowCardsMessage", isOptional = false , hasTag = true, tag = 31,
tagClass = TagClass.Application , hasDefaultValue = false )
private AllInShowCardsMessageSequenceType value;
public AllInShowCardsMessage () {
}
public void setValue(AllInShowCardsMessageSequenceType value) {
this.value = value;
}
public AllInShowCardsMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AllInShowCardsMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,58 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AmountOfMoney" )
public class AmountOfMoney implements IASN1PreparedElement {
@ASN1Integer( name = "AmountOfMoney" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 10000000L
)
private Integer value;
public AmountOfMoney() {
}
public AmountOfMoney(Integer value) {
this.value = value;
}
public void setValue(Integer value) {
this.value = value;
}
public Integer getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AmountOfMoney.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,223 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AnnounceMessage" )
public class AnnounceMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AnnounceMessage" , isSet = false )
public static class AnnounceMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "protocolVersion", isOptional = false , hasTag = false , hasDefaultValue = false )
private Version protocolVersion = null;
@ASN1Element ( name = "latestGameVersion", isOptional = false , hasTag = false , hasDefaultValue = false )
private Version latestGameVersion = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 65535L
)
@ASN1Element ( name = "latestBetaRevision", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer latestBetaRevision = null;
@ASN1PreparedElement
@ASN1Enum (
name = "ServerTypeEnumType"
)
public static class ServerTypeEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "serverTypeLAN", hasTag = true , tag = 0 )
serverTypeLAN ,
@ASN1EnumItem ( name = "serverTypeInternetNoAuth", hasTag = true , tag = 1 )
serverTypeInternetNoAuth ,
@ASN1EnumItem ( name = "serverTypeInternetAuth", hasTag = true , tag = 2 )
serverTypeInternetAuth ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ServerTypeEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "serverType", isOptional = false , hasTag = false , hasDefaultValue = false )
private ServerTypeEnumType serverType = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 65535L
)
@ASN1Element ( name = "numPlayersOnServer", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer numPlayersOnServer = null;
public Version getProtocolVersion () {
return this.protocolVersion;
}
public void setProtocolVersion (Version value) {
this.protocolVersion = value;
}
public Version getLatestGameVersion () {
return this.latestGameVersion;
}
public void setLatestGameVersion (Version value) {
this.latestGameVersion = value;
}
public Integer getLatestBetaRevision () {
return this.latestBetaRevision;
}
public void setLatestBetaRevision (Integer value) {
this.latestBetaRevision = value;
}
public ServerTypeEnumType getServerType () {
return this.serverType;
}
public void setServerType (ServerTypeEnumType value) {
this.serverType = value;
}
public Integer getNumPlayersOnServer () {
return this.numPlayersOnServer;
}
public void setNumPlayersOnServer (Integer value) {
this.numPlayersOnServer = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AnnounceMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AnnounceMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AnnounceMessageSequenceType.class);
}
@ASN1Element ( name = "AnnounceMessage", isOptional = false , hasTag = true, tag = 0,
tagClass = TagClass.Application , hasDefaultValue = false )
private AnnounceMessageSequenceType value;
public AnnounceMessage () {
}
public void setValue(AnnounceMessageSequenceType value) {
this.value = value;
}
public AnnounceMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AnnounceMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,177 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AskKickDeniedMessage" )
public class AskKickDeniedMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AskKickDeniedMessage" , isSet = false )
public static class AskKickDeniedMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
@ASN1PreparedElement
@ASN1Enum (
name = "KickDeniedReasonEnumType"
)
public static class KickDeniedReasonEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "kickDeniedInvalidGameState", hasTag = true , tag = 0 )
kickDeniedInvalidGameState ,
@ASN1EnumItem ( name = "kickDeniedNotPossible", hasTag = true , tag = 1 )
kickDeniedNotPossible ,
@ASN1EnumItem ( name = "kickDeniedTryAgainLater", hasTag = true , tag = 2 )
kickDeniedTryAgainLater ,
@ASN1EnumItem ( name = "kickDeniedAlreadyInProgress", hasTag = true , tag = 3 )
kickDeniedAlreadyInProgress ,
@ASN1EnumItem ( name = "kickDeniedInvalidPlayerId", hasTag = true , tag = 4 )
kickDeniedInvalidPlayerId ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(KickDeniedReasonEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "kickDeniedReason", isOptional = false , hasTag = false , hasDefaultValue = false )
private KickDeniedReasonEnumType kickDeniedReason = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public KickDeniedReasonEnumType getKickDeniedReason () {
return this.kickDeniedReason;
}
public void setKickDeniedReason (KickDeniedReasonEnumType value) {
this.kickDeniedReason = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AskKickDeniedMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AskKickDeniedMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AskKickDeniedMessageSequenceType.class);
}
@ASN1Element ( name = "AskKickDeniedMessage", isOptional = false , hasTag = true, tag = 65,
tagClass = TagClass.Application , hasDefaultValue = false )
private AskKickDeniedMessageSequenceType value;
public AskKickDeniedMessage () {
}
public void setValue(AskKickDeniedMessageSequenceType value) {
this.value = value;
}
public AskKickDeniedMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AskKickDeniedMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AskKickPlayerMessage" )
public class AskKickPlayerMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AskKickPlayerMessage" , isSet = false )
public static class AskKickPlayerMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AskKickPlayerMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AskKickPlayerMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AskKickPlayerMessageSequenceType.class);
}
@ASN1Element ( name = "AskKickPlayerMessage", isOptional = false , hasTag = true, tag = 64,
tagClass = TagClass.Application , hasDefaultValue = false )
private AskKickPlayerMessageSequenceType value;
public AskKickPlayerMessage () {
}
public void setValue(AskKickPlayerMessageSequenceType value) {
this.value = value;
}
public AskKickPlayerMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AskKickPlayerMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,60 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AuthClientResponse", isSet = false )
public class AuthClientResponse implements IASN1PreparedElement {
@ASN1OctetString( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 256L
)
@ASN1Element ( name = "clientResponse", isOptional = false , hasTag = false , hasDefaultValue = false )
private byte[] clientResponse = null;
public byte[] getClientResponse () {
return this.clientResponse;
}
public void setClientResponse (byte[] value) {
this.clientResponse = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthClientResponse.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-164
View File
@@ -1,164 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AuthMessage" )
public class AuthMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Choice ( name = "AuthMessage" )
public static class AuthMessageChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "authServerChallenge", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private AuthServerChallenge authServerChallenge = null;
@ASN1Element ( name = "authClientResponse", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private AuthClientResponse authClientResponse = null;
@ASN1Element ( name = "authServerVerification", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private AuthServerVerification authServerVerification = null;
public AuthServerChallenge getAuthServerChallenge () {
return this.authServerChallenge;
}
public boolean isAuthServerChallengeSelected () {
return this.authServerChallenge != null;
}
private void setAuthServerChallenge (AuthServerChallenge value) {
this.authServerChallenge = value;
}
public void selectAuthServerChallenge (AuthServerChallenge value) {
this.authServerChallenge = value;
setAuthClientResponse(null);
setAuthServerVerification(null);
}
public AuthClientResponse getAuthClientResponse () {
return this.authClientResponse;
}
public boolean isAuthClientResponseSelected () {
return this.authClientResponse != null;
}
private void setAuthClientResponse (AuthClientResponse value) {
this.authClientResponse = value;
}
public void selectAuthClientResponse (AuthClientResponse value) {
this.authClientResponse = value;
setAuthServerChallenge(null);
setAuthServerVerification(null);
}
public AuthServerVerification getAuthServerVerification () {
return this.authServerVerification;
}
public boolean isAuthServerVerificationSelected () {
return this.authServerVerification != null;
}
private void setAuthServerVerification (AuthServerVerification value) {
this.authServerVerification = value;
}
public void selectAuthServerVerification (AuthServerVerification value) {
this.authServerVerification = value;
setAuthServerChallenge(null);
setAuthClientResponse(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AuthMessageChoiceType;
}
private static IASN1PreparedElementData preparedData_AuthMessageChoiceType = CoderFactory.getInstance().newPreparedElementData(AuthMessageChoiceType.class);
}
@ASN1Element ( name = "AuthMessage", isOptional = false , hasTag = true, tag = 2,
tagClass = TagClass.Application , hasDefaultValue = false )
private AuthMessageChoiceType value;
public AuthMessage () {
}
public void setValue(AuthMessageChoiceType value) {
this.value = value;
}
public AuthMessageChoiceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,60 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AuthServerChallenge", isSet = false )
public class AuthServerChallenge implements IASN1PreparedElement {
@ASN1OctetString( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 256L
)
@ASN1Element ( name = "serverChallenge", isOptional = false , hasTag = false , hasDefaultValue = false )
private byte[] serverChallenge = null;
public byte[] getServerChallenge () {
return this.serverChallenge;
}
public void setServerChallenge (byte[] value) {
this.serverChallenge = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthServerChallenge.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,60 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AuthServerVerification", isSet = false )
public class AuthServerVerification implements IASN1PreparedElement {
@ASN1OctetString( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 256L
)
@ASN1Element ( name = "serverVerification", isOptional = false , hasTag = false , hasDefaultValue = false )
private byte[] serverVerification = null;
public byte[] getServerVerification () {
return this.serverVerification;
}
public void setServerVerification (byte[] value) {
this.serverVerification = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthServerVerification.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,81 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AuthenticatedLogin", isSet = false )
public class AuthenticatedLogin implements IASN1PreparedElement {
@ASN1OctetString( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 256L
)
@ASN1Element ( name = "clientUserData", isOptional = false , hasTag = false , hasDefaultValue = false )
private byte[] clientUserData = null;
@ASN1Element ( name = "avatar", isOptional = true , hasTag = false , hasDefaultValue = false )
private AvatarHash avatar = null;
public byte[] getClientUserData () {
return this.clientUserData;
}
public void setClientUserData (byte[] value) {
this.clientUserData = value;
}
public AvatarHash getAvatar () {
return this.avatar;
}
public boolean isAvatarPresent () {
return this.avatar != null;
}
public void setAvatar (AvatarHash value) {
this.avatar = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthenticatedLogin.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,60 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AvatarData", isSet = false )
public class AvatarData implements IASN1PreparedElement {
@ASN1OctetString( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 256L
)
@ASN1Element ( name = "avatarBlock", isOptional = false , hasTag = false , hasDefaultValue = false )
private byte[] avatarBlock = null;
public byte[] getAvatarBlock () {
return this.avatarBlock;
}
public void setAvatarBlock (byte[] value) {
this.avatarBlock = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarData.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-35
View File
@@ -1,35 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AvatarEnd", isSet = false )
public class AvatarEnd implements IASN1PreparedElement {
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarEnd.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,61 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AvatarHash" )
public class AvatarHash implements IASN1PreparedElement {
@ASN1OctetString( name = "AvatarHash" )
@ASN1SizeConstraint ( max = 16L )
private byte[] value = null;
public AvatarHash() {
}
public AvatarHash(byte[] value) {
this.value = value;
}
public AvatarHash(BitString value) {
setValue(value);
}
public void setValue(byte[] value) {
this.value = value;
}
public void setValue(BitString btStr) {
this.value = btStr.getValue();
}
public byte[] getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarHash.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,77 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "AvatarHeader", isSet = false )
public class AvatarHeader implements IASN1PreparedElement {
@ASN1Element ( name = "avatarType", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetAvatarType avatarType = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 32L,
max = 30720L
)
@ASN1Element ( name = "avatarSize", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer avatarSize = null;
public NetAvatarType getAvatarType () {
return this.avatarType;
}
public void setAvatarType (NetAvatarType value) {
this.avatarType = value;
}
public Integer getAvatarSize () {
return this.avatarSize;
}
public void setAvatarSize (Integer value) {
this.avatarSize = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarHeader.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,257 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AvatarReplyMessage" )
public class AvatarReplyMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AvatarReplyMessage" , isSet = false )
public static class AvatarReplyMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "requestId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId requestId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "avatarResult" )
public static class AvatarResultChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "avatarHeader", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private AvatarHeader avatarHeader = null;
@ASN1Element ( name = "avatarData", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private AvatarData avatarData = null;
@ASN1Element ( name = "avatarEnd", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private AvatarEnd avatarEnd = null;
@ASN1Element ( name = "unknownAvatar", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false )
private UnknownAvatar unknownAvatar = null;
public AvatarHeader getAvatarHeader () {
return this.avatarHeader;
}
public boolean isAvatarHeaderSelected () {
return this.avatarHeader != null;
}
private void setAvatarHeader (AvatarHeader value) {
this.avatarHeader = value;
}
public void selectAvatarHeader (AvatarHeader value) {
this.avatarHeader = value;
setAvatarData(null);
setAvatarEnd(null);
setUnknownAvatar(null);
}
public AvatarData getAvatarData () {
return this.avatarData;
}
public boolean isAvatarDataSelected () {
return this.avatarData != null;
}
private void setAvatarData (AvatarData value) {
this.avatarData = value;
}
public void selectAvatarData (AvatarData value) {
this.avatarData = value;
setAvatarHeader(null);
setAvatarEnd(null);
setUnknownAvatar(null);
}
public AvatarEnd getAvatarEnd () {
return this.avatarEnd;
}
public boolean isAvatarEndSelected () {
return this.avatarEnd != null;
}
private void setAvatarEnd (AvatarEnd value) {
this.avatarEnd = value;
}
public void selectAvatarEnd (AvatarEnd value) {
this.avatarEnd = value;
setAvatarHeader(null);
setAvatarData(null);
setUnknownAvatar(null);
}
public UnknownAvatar getUnknownAvatar () {
return this.unknownAvatar;
}
public boolean isUnknownAvatarSelected () {
return this.unknownAvatar != null;
}
private void setUnknownAvatar (UnknownAvatar value) {
this.unknownAvatar = value;
}
public void selectUnknownAvatar (UnknownAvatar value) {
this.unknownAvatar = value;
setAvatarHeader(null);
setAvatarData(null);
setAvatarEnd(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AvatarResultChoiceType;
}
private static IASN1PreparedElementData preparedData_AvatarResultChoiceType = CoderFactory.getInstance().newPreparedElementData(AvatarResultChoiceType.class);
}
@ASN1Element ( name = "avatarResult", isOptional = false , hasTag = false , hasDefaultValue = false )
private AvatarResultChoiceType avatarResult = null;
public NonZeroId getRequestId () {
return this.requestId;
}
public void setRequestId (NonZeroId value) {
this.requestId = value;
}
public AvatarResultChoiceType getAvatarResult () {
return this.avatarResult;
}
public void setAvatarResult (AvatarResultChoiceType value) {
this.avatarResult = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AvatarReplyMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AvatarReplyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AvatarReplyMessageSequenceType.class);
}
@ASN1Element ( name = "AvatarReplyMessage", isOptional = false , hasTag = true, tag = 5,
tagClass = TagClass.Application , hasDefaultValue = false )
private AvatarReplyMessageSequenceType value;
public AvatarReplyMessage () {
}
public void setValue(AvatarReplyMessageSequenceType value) {
this.value = value;
}
public AvatarReplyMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarReplyMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "AvatarRequestMessage" )
public class AvatarRequestMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "AvatarRequestMessage" , isSet = false )
public static class AvatarRequestMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "requestId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId requestId = null;
@ASN1Element ( name = "avatar", isOptional = false , hasTag = false , hasDefaultValue = false )
private AvatarHash avatar = null;
public NonZeroId getRequestId () {
return this.requestId;
}
public void setRequestId (NonZeroId value) {
this.requestId = value;
}
public AvatarHash getAvatar () {
return this.avatar;
}
public void setAvatar (AvatarHash value) {
this.avatar = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_AvatarRequestMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_AvatarRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AvatarRequestMessageSequenceType.class);
}
@ASN1Element ( name = "AvatarRequestMessage", isOptional = false , hasTag = true, tag = 4,
tagClass = TagClass.Application , hasDefaultValue = false )
private AvatarRequestMessageSequenceType value;
public AvatarRequestMessage () {
}
public void setValue(AvatarRequestMessageSequenceType value) {
this.value = value;
}
public AvatarRequestMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarRequestMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-58
View File
@@ -1,58 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "Card" )
public class Card implements IASN1PreparedElement {
@ASN1Integer( name = "Card" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 51L
)
private Integer value;
public Card() {
}
public Card(Integer value) {
this.value = value;
}
public void setValue(Integer value) {
this.value = value;
}
public Integer getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Card.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-309
View File
@@ -1,309 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "ChatMessage" )
public class ChatMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatMessage" , isSet = false )
public static class ChatMessageSequenceType implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Choice ( name = "chatType" )
public static class ChatTypeChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "chatTypeLobby", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private ChatTypeLobby chatTypeLobby = null;
@ASN1Element ( name = "chatTypeGame", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private ChatTypeGame chatTypeGame = null;
@ASN1Element ( name = "chatTypeBot", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private ChatTypeBot chatTypeBot = null;
@ASN1Element ( name = "chatTypeBroadcast", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false )
private ChatTypeBroadcast chatTypeBroadcast = null;
@ASN1Element ( name = "chatTypePrivate", isOptional = false , hasTag = true, tag = 4 , hasDefaultValue = false )
private ChatTypePrivate chatTypePrivate = null;
public ChatTypeLobby getChatTypeLobby () {
return this.chatTypeLobby;
}
public boolean isChatTypeLobbySelected () {
return this.chatTypeLobby != null;
}
private void setChatTypeLobby (ChatTypeLobby value) {
this.chatTypeLobby = value;
}
public void selectChatTypeLobby (ChatTypeLobby value) {
this.chatTypeLobby = value;
setChatTypeGame(null);
setChatTypeBot(null);
setChatTypeBroadcast(null);
setChatTypePrivate(null);
}
public ChatTypeGame getChatTypeGame () {
return this.chatTypeGame;
}
public boolean isChatTypeGameSelected () {
return this.chatTypeGame != null;
}
private void setChatTypeGame (ChatTypeGame value) {
this.chatTypeGame = value;
}
public void selectChatTypeGame (ChatTypeGame value) {
this.chatTypeGame = value;
setChatTypeLobby(null);
setChatTypeBot(null);
setChatTypeBroadcast(null);
setChatTypePrivate(null);
}
public ChatTypeBot getChatTypeBot () {
return this.chatTypeBot;
}
public boolean isChatTypeBotSelected () {
return this.chatTypeBot != null;
}
private void setChatTypeBot (ChatTypeBot value) {
this.chatTypeBot = value;
}
public void selectChatTypeBot (ChatTypeBot value) {
this.chatTypeBot = value;
setChatTypeLobby(null);
setChatTypeGame(null);
setChatTypeBroadcast(null);
setChatTypePrivate(null);
}
public ChatTypeBroadcast getChatTypeBroadcast () {
return this.chatTypeBroadcast;
}
public boolean isChatTypeBroadcastSelected () {
return this.chatTypeBroadcast != null;
}
private void setChatTypeBroadcast (ChatTypeBroadcast value) {
this.chatTypeBroadcast = value;
}
public void selectChatTypeBroadcast (ChatTypeBroadcast value) {
this.chatTypeBroadcast = value;
setChatTypeLobby(null);
setChatTypeGame(null);
setChatTypeBot(null);
setChatTypePrivate(null);
}
public ChatTypePrivate getChatTypePrivate () {
return this.chatTypePrivate;
}
public boolean isChatTypePrivateSelected () {
return this.chatTypePrivate != null;
}
private void setChatTypePrivate (ChatTypePrivate value) {
this.chatTypePrivate = value;
}
public void selectChatTypePrivate (ChatTypePrivate value) {
this.chatTypePrivate = value;
setChatTypeLobby(null);
setChatTypeGame(null);
setChatTypeBot(null);
setChatTypeBroadcast(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_ChatTypeChoiceType;
}
private static IASN1PreparedElementData preparedData_ChatTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(ChatTypeChoiceType.class);
}
@ASN1Element ( name = "chatType", isOptional = false , hasTag = false , hasDefaultValue = false )
private ChatTypeChoiceType chatType = null;
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 128L
)
@ASN1Element ( name = "chatText", isOptional = false , hasTag = false , hasDefaultValue = false )
private String chatText = null;
public ChatTypeChoiceType getChatType () {
return this.chatType;
}
public void setChatType (ChatTypeChoiceType value) {
this.chatType = value;
}
public String getChatText () {
return this.chatText;
}
public void setChatText (String value) {
this.chatText = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_ChatMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_ChatMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ChatMessageSequenceType.class);
}
@ASN1Element ( name = "ChatMessage", isOptional = false , hasTag = true, tag = 130,
tagClass = TagClass.Application , hasDefaultValue = false )
private ChatMessageSequenceType value;
public ChatMessage () {
}
public void setValue(ChatMessageSequenceType value) {
this.value = value;
}
public ChatMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,104 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "ChatRejectMessage" )
public class ChatRejectMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatRejectMessage" , isSet = false )
public static class ChatRejectMessageSequenceType implements IASN1PreparedElement {
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 128L
)
@ASN1Element ( name = "chatText", isOptional = false , hasTag = false , hasDefaultValue = false )
private String chatText = null;
public String getChatText () {
return this.chatText;
}
public void setChatText (String value) {
this.chatText = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_ChatRejectMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_ChatRejectMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ChatRejectMessageSequenceType.class);
}
@ASN1Element ( name = "ChatRejectMessage", isOptional = false , hasTag = true, tag = 131,
tagClass = TagClass.Application , hasDefaultValue = false )
private ChatRejectMessageSequenceType value;
public ChatRejectMessage () {
}
public void setValue(ChatRejectMessageSequenceType value) {
this.value = value;
}
public ChatRejectMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRejectMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,229 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "ChatRequestMessage" )
public class ChatRequestMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatRequestMessage" , isSet = false )
public static class ChatRequestMessageSequenceType implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Choice ( name = "chatRequestType" )
public static class ChatRequestTypeChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "chatRequestTypeLobby", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private ChatRequestTypeLobby chatRequestTypeLobby = null;
@ASN1Element ( name = "chatRequestTypeGame", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private ChatRequestTypeGame chatRequestTypeGame = null;
@ASN1Element ( name = "chatRequestTypePrivate", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private ChatRequestTypePrivate chatRequestTypePrivate = null;
public ChatRequestTypeLobby getChatRequestTypeLobby () {
return this.chatRequestTypeLobby;
}
public boolean isChatRequestTypeLobbySelected () {
return this.chatRequestTypeLobby != null;
}
private void setChatRequestTypeLobby (ChatRequestTypeLobby value) {
this.chatRequestTypeLobby = value;
}
public void selectChatRequestTypeLobby (ChatRequestTypeLobby value) {
this.chatRequestTypeLobby = value;
setChatRequestTypeGame(null);
setChatRequestTypePrivate(null);
}
public ChatRequestTypeGame getChatRequestTypeGame () {
return this.chatRequestTypeGame;
}
public boolean isChatRequestTypeGameSelected () {
return this.chatRequestTypeGame != null;
}
private void setChatRequestTypeGame (ChatRequestTypeGame value) {
this.chatRequestTypeGame = value;
}
public void selectChatRequestTypeGame (ChatRequestTypeGame value) {
this.chatRequestTypeGame = value;
setChatRequestTypeLobby(null);
setChatRequestTypePrivate(null);
}
public ChatRequestTypePrivate getChatRequestTypePrivate () {
return this.chatRequestTypePrivate;
}
public boolean isChatRequestTypePrivateSelected () {
return this.chatRequestTypePrivate != null;
}
private void setChatRequestTypePrivate (ChatRequestTypePrivate value) {
this.chatRequestTypePrivate = value;
}
public void selectChatRequestTypePrivate (ChatRequestTypePrivate value) {
this.chatRequestTypePrivate = value;
setChatRequestTypeLobby(null);
setChatRequestTypeGame(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_ChatRequestTypeChoiceType;
}
private static IASN1PreparedElementData preparedData_ChatRequestTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypeChoiceType.class);
}
@ASN1Element ( name = "chatRequestType", isOptional = false , hasTag = false , hasDefaultValue = false )
private ChatRequestTypeChoiceType chatRequestType = null;
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 128L
)
@ASN1Element ( name = "chatText", isOptional = false , hasTag = false , hasDefaultValue = false )
private String chatText = null;
public ChatRequestTypeChoiceType getChatRequestType () {
return this.chatRequestType;
}
public void setChatRequestType (ChatRequestTypeChoiceType value) {
this.chatRequestType = value;
}
public String getChatText () {
return this.chatText;
}
public void setChatText (String value) {
this.chatText = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_ChatRequestMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_ChatRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ChatRequestMessageSequenceType.class);
}
@ASN1Element ( name = "ChatRequestMessage", isOptional = false , hasTag = true, tag = 129,
tagClass = TagClass.Application , hasDefaultValue = false )
private ChatRequestMessageSequenceType value;
public ChatRequestMessage () {
}
public void setValue(ChatRequestMessageSequenceType value) {
this.value = value;
}
public ChatRequestMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatRequestTypeGame", isSet = false )
public class ChatRequestTypeGame implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypeGame.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,35 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatRequestTypeLobby", isSet = false )
public class ChatRequestTypeLobby implements IASN1PreparedElement {
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypeLobby.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatRequestTypePrivate", isSet = false )
public class ChatRequestTypePrivate implements IASN1PreparedElement {
@ASN1Element ( name = "targetPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId targetPlayerId = null;
public NonZeroId getTargetPlayerId () {
return this.targetPlayerId;
}
public void setTargetPlayerId (NonZeroId value) {
this.targetPlayerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypePrivate.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,35 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatTypeBot", isSet = false )
public class ChatTypeBot implements IASN1PreparedElement {
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeBot.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,35 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatTypeBroadcast", isSet = false )
public class ChatTypeBroadcast implements IASN1PreparedElement {
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeBroadcast.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,69 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatTypeGame", isSet = false )
public class ChatTypeGame implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeGame.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatTypeLobby", isSet = false )
public class ChatTypeLobby implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeLobby.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "ChatTypePrivate", isSet = false )
public class ChatTypePrivate implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypePrivate.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,145 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "DealFlopCardsMessage" )
public class DealFlopCardsMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "DealFlopCardsMessage" , isSet = false )
public static class DealFlopCardsMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "flopCard1", isOptional = false , hasTag = false , hasDefaultValue = false )
private Card flopCard1 = null;
@ASN1Element ( name = "flopCard2", isOptional = false , hasTag = false , hasDefaultValue = false )
private Card flopCard2 = null;
@ASN1Element ( name = "flopCard3", isOptional = false , hasTag = false , hasDefaultValue = false )
private Card flopCard3 = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public Card getFlopCard1 () {
return this.flopCard1;
}
public void setFlopCard1 (Card value) {
this.flopCard1 = value;
}
public Card getFlopCard2 () {
return this.flopCard2;
}
public void setFlopCard2 (Card value) {
this.flopCard2 = value;
}
public Card getFlopCard3 () {
return this.flopCard3;
}
public void setFlopCard3 (Card value) {
this.flopCard3 = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_DealFlopCardsMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_DealFlopCardsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DealFlopCardsMessageSequenceType.class);
}
@ASN1Element ( name = "DealFlopCardsMessage", isOptional = false , hasTag = true, tag = 28,
tagClass = TagClass.Application , hasDefaultValue = false )
private DealFlopCardsMessageSequenceType value;
public DealFlopCardsMessage () {
}
public void setValue(DealFlopCardsMessageSequenceType value) {
this.value = value;
}
public DealFlopCardsMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DealFlopCardsMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "DealRiverCardMessage" )
public class DealRiverCardMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "DealRiverCardMessage" , isSet = false )
public static class DealRiverCardMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "riverCard", isOptional = false , hasTag = false , hasDefaultValue = false )
private Card riverCard = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public Card getRiverCard () {
return this.riverCard;
}
public void setRiverCard (Card value) {
this.riverCard = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_DealRiverCardMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_DealRiverCardMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DealRiverCardMessageSequenceType.class);
}
@ASN1Element ( name = "DealRiverCardMessage", isOptional = false , hasTag = true, tag = 30,
tagClass = TagClass.Application , hasDefaultValue = false )
private DealRiverCardMessageSequenceType value;
public DealRiverCardMessage () {
}
public void setValue(DealRiverCardMessageSequenceType value) {
this.value = value;
}
public DealRiverCardMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DealRiverCardMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "DealTurnCardMessage" )
public class DealTurnCardMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "DealTurnCardMessage" , isSet = false )
public static class DealTurnCardMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "turnCard", isOptional = false , hasTag = false , hasDefaultValue = false )
private Card turnCard = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public Card getTurnCard () {
return this.turnCard;
}
public void setTurnCard (Card value) {
this.turnCard = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_DealTurnCardMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_DealTurnCardMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DealTurnCardMessageSequenceType.class);
}
@ASN1Element ( name = "DealTurnCardMessage", isOptional = false , hasTag = true, tag = 29,
tagClass = TagClass.Application , hasDefaultValue = false )
private DealTurnCardMessageSequenceType value;
public DealTurnCardMessage () {
}
public void setValue(DealTurnCardMessageSequenceType value) {
this.value = value;
}
public DealTurnCardMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DealTurnCardMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,104 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "DialogMessage" )
public class DialogMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "DialogMessage" , isSet = false )
public static class DialogMessageSequenceType implements IASN1PreparedElement {
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 128L
)
@ASN1Element ( name = "notificationText", isOptional = false , hasTag = false , hasDefaultValue = false )
private String notificationText = null;
public String getNotificationText () {
return this.notificationText;
}
public void setNotificationText (String value) {
this.notificationText = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_DialogMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_DialogMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DialogMessageSequenceType.class);
}
@ASN1Element ( name = "DialogMessage", isOptional = false , hasTag = true, tag = 132,
tagClass = TagClass.Application , hasDefaultValue = false )
private DialogMessageSequenceType value;
public DialogMessage () {
}
public void setValue(DialogMessageSequenceType value) {
this.value = value;
}
public DialogMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DialogMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,60 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "EncryptedCards", isSet = false )
public class EncryptedCards implements IASN1PreparedElement {
@ASN1OctetString( name = "" )
@ASN1ValueRangeConstraint (
min = 16L,
max = 64L
)
@ASN1Element ( name = "cardData", isOptional = false , hasTag = false , hasDefaultValue = false )
private byte[] cardData = null;
public byte[] getCardData () {
return this.cardData;
}
public void setCardData (byte[] value) {
this.cardData = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EncryptedCards.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,243 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "EndKickPetitionMessage" )
public class EndKickPetitionMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "EndKickPetitionMessage" , isSet = false )
public static class EndKickPetitionMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId petitionId = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 9L
)
@ASN1Element ( name = "numVotesAgainstKicking", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer numVotesAgainstKicking = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 9L
)
@ASN1Element ( name = "numVotesInFavourOfKicking", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer numVotesInFavourOfKicking = null;
@ASN1Boolean( name = "" )
@ASN1Element ( name = "resultPlayerKicked", isOptional = false , hasTag = false , hasDefaultValue = false )
private Boolean resultPlayerKicked = null;
@ASN1PreparedElement
@ASN1Enum (
name = "PetitionEndReasonEnumType"
)
public static class PetitionEndReasonEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "petitionEndEnoughVotes", hasTag = true , tag = 0 )
petitionEndEnoughVotes ,
@ASN1EnumItem ( name = "petitionEndTooFewPlayers", hasTag = true , tag = 1 )
petitionEndTooFewPlayers ,
@ASN1EnumItem ( name = "petitionEndPlayerLeft", hasTag = true , tag = 2 )
petitionEndPlayerLeft ,
@ASN1EnumItem ( name = "petitionEndTimeout", hasTag = true , tag = 3 )
petitionEndTimeout ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PetitionEndReasonEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "petitionEndReason", isOptional = false , hasTag = false , hasDefaultValue = false )
private PetitionEndReasonEnumType petitionEndReason = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPetitionId () {
return this.petitionId;
}
public void setPetitionId (NonZeroId value) {
this.petitionId = value;
}
public Integer getNumVotesAgainstKicking () {
return this.numVotesAgainstKicking;
}
public void setNumVotesAgainstKicking (Integer value) {
this.numVotesAgainstKicking = value;
}
public Integer getNumVotesInFavourOfKicking () {
return this.numVotesInFavourOfKicking;
}
public void setNumVotesInFavourOfKicking (Integer value) {
this.numVotesInFavourOfKicking = value;
}
public Boolean getResultPlayerKicked () {
return this.resultPlayerKicked;
}
public void setResultPlayerKicked (Boolean value) {
this.resultPlayerKicked = value;
}
public PetitionEndReasonEnumType getPetitionEndReason () {
return this.petitionEndReason;
}
public void setPetitionEndReason (PetitionEndReasonEnumType value) {
this.petitionEndReason = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_EndKickPetitionMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_EndKickPetitionMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(EndKickPetitionMessageSequenceType.class);
}
@ASN1Element ( name = "EndKickPetitionMessage", isOptional = false , hasTag = true, tag = 70,
tagClass = TagClass.Application , hasDefaultValue = false )
private EndKickPetitionMessageSequenceType value;
public EndKickPetitionMessage () {
}
public void setValue(EndKickPetitionMessageSequenceType value) {
this.value = value;
}
public EndKickPetitionMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndKickPetitionMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "EndOfGameMessage" )
public class EndOfGameMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "EndOfGameMessage" , isSet = false )
public static class EndOfGameMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "winnerPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId winnerPlayerId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getWinnerPlayerId () {
return this.winnerPlayerId;
}
public void setWinnerPlayerId (NonZeroId value) {
this.winnerPlayerId = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_EndOfGameMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_EndOfGameMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(EndOfGameMessageSequenceType.class);
}
@ASN1Element ( name = "EndOfGameMessage", isOptional = false , hasTag = true, tag = 35,
tagClass = TagClass.Application , hasDefaultValue = false )
private EndOfGameMessageSequenceType value;
public EndOfGameMessage () {
}
public void setValue(EndOfGameMessageSequenceType value) {
this.value = value;
}
public EndOfGameMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfGameMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,86 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "EndOfHandHideCards", isSet = false )
public class EndOfHandHideCards implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
@ASN1Element ( name = "moneyWon", isOptional = false , hasTag = false , hasDefaultValue = false )
private AmountOfMoney moneyWon = null;
@ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false )
private AmountOfMoney playerMoney = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public AmountOfMoney getMoneyWon () {
return this.moneyWon;
}
public void setMoneyWon (AmountOfMoney value) {
this.moneyWon = value;
}
public AmountOfMoney getPlayerMoney () {
return this.playerMoney;
}
public void setPlayerMoney (AmountOfMoney value) {
this.playerMoney = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfHandHideCards.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,185 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "EndOfHandMessage" )
public class EndOfHandMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "EndOfHandMessage" , isSet = false )
public static class EndOfHandMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "endOfHandType" )
public static class EndOfHandTypeChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "endOfHandShowCards", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private EndOfHandShowCards endOfHandShowCards = null;
@ASN1Element ( name = "endOfHandHideCards", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private EndOfHandHideCards endOfHandHideCards = null;
public EndOfHandShowCards getEndOfHandShowCards () {
return this.endOfHandShowCards;
}
public boolean isEndOfHandShowCardsSelected () {
return this.endOfHandShowCards != null;
}
private void setEndOfHandShowCards (EndOfHandShowCards value) {
this.endOfHandShowCards = value;
}
public void selectEndOfHandShowCards (EndOfHandShowCards value) {
this.endOfHandShowCards = value;
setEndOfHandHideCards(null);
}
public EndOfHandHideCards getEndOfHandHideCards () {
return this.endOfHandHideCards;
}
public boolean isEndOfHandHideCardsSelected () {
return this.endOfHandHideCards != null;
}
private void setEndOfHandHideCards (EndOfHandHideCards value) {
this.endOfHandHideCards = value;
}
public void selectEndOfHandHideCards (EndOfHandHideCards value) {
this.endOfHandHideCards = value;
setEndOfHandShowCards(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_EndOfHandTypeChoiceType;
}
private static IASN1PreparedElementData preparedData_EndOfHandTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(EndOfHandTypeChoiceType.class);
}
@ASN1Element ( name = "endOfHandType", isOptional = false , hasTag = false , hasDefaultValue = false )
private EndOfHandTypeChoiceType endOfHandType = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public EndOfHandTypeChoiceType getEndOfHandType () {
return this.endOfHandType;
}
public void setEndOfHandType (EndOfHandTypeChoiceType value) {
this.endOfHandType = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_EndOfHandMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_EndOfHandMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(EndOfHandMessageSequenceType.class);
}
@ASN1Element ( name = "EndOfHandMessage", isOptional = false , hasTag = true, tag = 32,
tagClass = TagClass.Application , hasDefaultValue = false )
private EndOfHandMessageSequenceType value;
public EndOfHandMessage () {
}
public void setValue(EndOfHandMessageSequenceType value) {
this.value = value;
}
public EndOfHandMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfHandMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,62 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "EndOfHandShowCards", isSet = false )
public class EndOfHandShowCards implements IASN1PreparedElement {
@ASN1SequenceOf( name = "playerResults", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 10L
)
@ASN1Element ( name = "playerResults", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<PlayerResult> playerResults = null;
public java.util.Collection<PlayerResult> getPlayerResults () {
return this.playerResults;
}
public void setPlayerResults (java.util.Collection<PlayerResult> value) {
this.playerResults = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfHandShowCards.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,163 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "ErrorMessage" )
public class ErrorMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "ErrorMessage" , isSet = false )
public static class ErrorMessageSequenceType implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Enum (
name = "ErrorReasonEnumType"
)
public static class ErrorReasonEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "errorReserved", hasTag = true , tag = 0 )
errorReserved ,
@ASN1EnumItem ( name = "errorInitVersionNotSupported", hasTag = true , tag = 1 )
errorInitVersionNotSupported ,
@ASN1EnumItem ( name = "errorInitServerFull", hasTag = true , tag = 2 )
errorInitServerFull ,
@ASN1EnumItem ( name = "errorInitAuthFailure", hasTag = true , tag = 3 )
errorInitAuthFailure ,
@ASN1EnumItem ( name = "errorInitPlayerNameInUse", hasTag = true , tag = 4 )
errorInitPlayerNameInUse ,
@ASN1EnumItem ( name = "errorInitInvalidPlayerName", hasTag = true , tag = 5 )
errorInitInvalidPlayerName ,
@ASN1EnumItem ( name = "errorInitServerMaintenance", hasTag = true , tag = 6 )
errorInitServerMaintenance ,
@ASN1EnumItem ( name = "errorInitBlocked", hasTag = true , tag = 7 )
errorInitBlocked ,
@ASN1EnumItem ( name = "errorAvatarTooLarge", hasTag = true , tag = 8 )
errorAvatarTooLarge ,
@ASN1EnumItem ( name = "errorInvalidPacket", hasTag = true , tag = 256 )
errorInvalidPacket ,
@ASN1EnumItem ( name = "errorInvalidState", hasTag = true , tag = 257 )
errorInvalidState ,
@ASN1EnumItem ( name = "errorKickedFromServer", hasTag = true , tag = 258 )
errorKickedFromServer ,
@ASN1EnumItem ( name = "errorBannedFromServer", hasTag = true , tag = 259 )
errorBannedFromServer ,
@ASN1EnumItem ( name = "errorBlockedByServer", hasTag = true , tag = 260 )
errorBlockedByServer ,
@ASN1EnumItem ( name = "errorSessionTimeout", hasTag = true , tag = 261 )
errorSessionTimeout
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ErrorReasonEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "errorReason", isOptional = false , hasTag = false , hasDefaultValue = false )
private ErrorReasonEnumType errorReason = null;
public ErrorReasonEnumType getErrorReason () {
return this.errorReason;
}
public void setErrorReason (ErrorReasonEnumType value) {
this.errorReason = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_ErrorMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_ErrorMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ErrorMessageSequenceType.class);
}
@ASN1Element ( name = "ErrorMessage", isOptional = false , hasTag = true, tag = 255,
tagClass = TagClass.Application , hasDefaultValue = false )
private ErrorMessageSequenceType value;
public ErrorMessage () {
}
public void setValue(ErrorMessageSequenceType value) {
this.value = value;
}
public ErrorMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ErrorMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameAdminChanged", isSet = false )
public class GameAdminChanged implements IASN1PreparedElement {
@ASN1Element ( name = "newAdminPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId newAdminPlayerId = null;
public NonZeroId getNewAdminPlayerId () {
return this.newAdminPlayerId;
}
public void setNewAdminPlayerId (NonZeroId value) {
this.newAdminPlayerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameAdminChanged.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameListAdminChanged", isSet = false )
public class GameListAdminChanged implements IASN1PreparedElement {
@ASN1Element ( name = "newAdminPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId newAdminPlayerId = null;
public NonZeroId getNewAdminPlayerId () {
return this.newAdminPlayerId;
}
public void setNewAdminPlayerId (NonZeroId value) {
this.newAdminPlayerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListAdminChanged.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,299 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "GameListMessage" )
public class GameListMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "GameListMessage" , isSet = false )
public static class GameListMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "gameListNotification" )
public static class GameListNotificationChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameListNew", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private GameListNew gameListNew = null;
@ASN1Element ( name = "gameListUpdate", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private GameListUpdate gameListUpdate = null;
@ASN1Element ( name = "gameListPlayerJoined", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private GameListPlayerJoined gameListPlayerJoined = null;
@ASN1Element ( name = "gameListPlayerLeft", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false )
private GameListPlayerLeft gameListPlayerLeft = null;
@ASN1Element ( name = "gameListAdminChanged", isOptional = false , hasTag = true, tag = 4 , hasDefaultValue = false )
private GameListAdminChanged gameListAdminChanged = null;
public GameListNew getGameListNew () {
return this.gameListNew;
}
public boolean isGameListNewSelected () {
return this.gameListNew != null;
}
private void setGameListNew (GameListNew value) {
this.gameListNew = value;
}
public void selectGameListNew (GameListNew value) {
this.gameListNew = value;
setGameListUpdate(null);
setGameListPlayerJoined(null);
setGameListPlayerLeft(null);
setGameListAdminChanged(null);
}
public GameListUpdate getGameListUpdate () {
return this.gameListUpdate;
}
public boolean isGameListUpdateSelected () {
return this.gameListUpdate != null;
}
private void setGameListUpdate (GameListUpdate value) {
this.gameListUpdate = value;
}
public void selectGameListUpdate (GameListUpdate value) {
this.gameListUpdate = value;
setGameListNew(null);
setGameListPlayerJoined(null);
setGameListPlayerLeft(null);
setGameListAdminChanged(null);
}
public GameListPlayerJoined getGameListPlayerJoined () {
return this.gameListPlayerJoined;
}
public boolean isGameListPlayerJoinedSelected () {
return this.gameListPlayerJoined != null;
}
private void setGameListPlayerJoined (GameListPlayerJoined value) {
this.gameListPlayerJoined = value;
}
public void selectGameListPlayerJoined (GameListPlayerJoined value) {
this.gameListPlayerJoined = value;
setGameListNew(null);
setGameListUpdate(null);
setGameListPlayerLeft(null);
setGameListAdminChanged(null);
}
public GameListPlayerLeft getGameListPlayerLeft () {
return this.gameListPlayerLeft;
}
public boolean isGameListPlayerLeftSelected () {
return this.gameListPlayerLeft != null;
}
private void setGameListPlayerLeft (GameListPlayerLeft value) {
this.gameListPlayerLeft = value;
}
public void selectGameListPlayerLeft (GameListPlayerLeft value) {
this.gameListPlayerLeft = value;
setGameListNew(null);
setGameListUpdate(null);
setGameListPlayerJoined(null);
setGameListAdminChanged(null);
}
public GameListAdminChanged getGameListAdminChanged () {
return this.gameListAdminChanged;
}
public boolean isGameListAdminChangedSelected () {
return this.gameListAdminChanged != null;
}
private void setGameListAdminChanged (GameListAdminChanged value) {
this.gameListAdminChanged = value;
}
public void selectGameListAdminChanged (GameListAdminChanged value) {
this.gameListAdminChanged = value;
setGameListNew(null);
setGameListUpdate(null);
setGameListPlayerJoined(null);
setGameListPlayerLeft(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_GameListNotificationChoiceType;
}
private static IASN1PreparedElementData preparedData_GameListNotificationChoiceType = CoderFactory.getInstance().newPreparedElementData(GameListNotificationChoiceType.class);
}
@ASN1Element ( name = "gameListNotification", isOptional = false , hasTag = false , hasDefaultValue = false )
private GameListNotificationChoiceType gameListNotification = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public GameListNotificationChoiceType getGameListNotification () {
return this.gameListNotification;
}
public void setGameListNotification (GameListNotificationChoiceType value) {
this.gameListNotification = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_GameListMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_GameListMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(GameListMessageSequenceType.class);
}
@ASN1Element ( name = "GameListMessage", isOptional = false , hasTag = true, tag = 7,
tagClass = TagClass.Application , hasDefaultValue = false )
private GameListMessageSequenceType value;
public GameListMessage () {
}
public void setValue(GameListMessageSequenceType value) {
this.value = value;
}
public GameListMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-131
View File
@@ -1,131 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameListNew", isSet = false )
public class GameListNew implements IASN1PreparedElement {
@ASN1Element ( name = "gameMode", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameMode gameMode = null;
@ASN1Boolean( name = "" )
@ASN1Element ( name = "isPrivate", isOptional = false , hasTag = false , hasDefaultValue = false )
private Boolean isPrivate = null;
@ASN1SequenceOf( name = "playerIds", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 0L,
max = 10L
)
@ASN1Element ( name = "playerIds", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<NonZeroId> playerIds = null;
@ASN1Element ( name = "adminPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId adminPlayerId = null;
@ASN1Element ( name = "gameInfo", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameInfo gameInfo = null;
public NetGameMode getGameMode () {
return this.gameMode;
}
public void setGameMode (NetGameMode value) {
this.gameMode = value;
}
public Boolean getIsPrivate () {
return this.isPrivate;
}
public void setIsPrivate (Boolean value) {
this.isPrivate = value;
}
public java.util.Collection<NonZeroId> getPlayerIds () {
return this.playerIds;
}
public void setPlayerIds (java.util.Collection<NonZeroId> value) {
this.playerIds = value;
}
public NonZeroId getAdminPlayerId () {
return this.adminPlayerId;
}
public void setAdminPlayerId (NonZeroId value) {
this.adminPlayerId = value;
}
public NetGameInfo getGameInfo () {
return this.gameInfo;
}
public void setGameInfo (NetGameInfo value) {
this.gameInfo = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListNew.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameListPlayerJoined", isSet = false )
public class GameListPlayerJoined implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListPlayerJoined.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameListPlayerLeft", isSet = false )
public class GameListPlayerLeft implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListPlayerLeft.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,52 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameListUpdate", isSet = false )
public class GameListUpdate implements IASN1PreparedElement {
@ASN1Element ( name = "gameMode", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameMode gameMode = null;
public NetGameMode getGameMode () {
return this.gameMode;
}
public void setGameMode (NetGameMode value) {
this.gameMode = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListUpdate.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,70 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GamePlayerJoined", isSet = false )
public class GamePlayerJoined implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
@ASN1Boolean( name = "" )
@ASN1Element ( name = "isGameAdmin", isOptional = false , hasTag = false , hasDefaultValue = false )
private Boolean isGameAdmin = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public Boolean getIsGameAdmin () {
return this.isGameAdmin;
}
public void setIsGameAdmin (Boolean value) {
this.isGameAdmin = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerJoined.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,114 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GamePlayerLeft", isSet = false )
public class GamePlayerLeft implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
@ASN1PreparedElement
@ASN1Enum (
name = "GamePlayerLeftReasonEnumType"
)
public static class GamePlayerLeftReasonEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "leftOnRequest", hasTag = true , tag = 0 )
leftOnRequest ,
@ASN1EnumItem ( name = "leftKicked", hasTag = true , tag = 1 )
leftKicked ,
@ASN1EnumItem ( name = "leftError", hasTag = true , tag = 2 )
leftError ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerLeftReasonEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "gamePlayerLeftReason", isOptional = false , hasTag = false , hasDefaultValue = false )
private GamePlayerLeftReasonEnumType gamePlayerLeftReason = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public GamePlayerLeftReasonEnumType getGamePlayerLeftReason () {
return this.gamePlayerLeftReason;
}
public void setGamePlayerLeftReason (GamePlayerLeftReasonEnumType value) {
this.gamePlayerLeftReason = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerLeft.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,257 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "GamePlayerMessage" )
public class GamePlayerMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "GamePlayerMessage" , isSet = false )
public static class GamePlayerMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "gamePlayerNotification" )
public static class GamePlayerNotificationChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "gamePlayerJoined", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private GamePlayerJoined gamePlayerJoined = null;
@ASN1Element ( name = "gamePlayerLeft", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private GamePlayerLeft gamePlayerLeft = null;
@ASN1Element ( name = "gameAdminChanged", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private GameAdminChanged gameAdminChanged = null;
@ASN1Element ( name = "removedFromGame", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false )
private RemovedFromGame removedFromGame = null;
public GamePlayerJoined getGamePlayerJoined () {
return this.gamePlayerJoined;
}
public boolean isGamePlayerJoinedSelected () {
return this.gamePlayerJoined != null;
}
private void setGamePlayerJoined (GamePlayerJoined value) {
this.gamePlayerJoined = value;
}
public void selectGamePlayerJoined (GamePlayerJoined value) {
this.gamePlayerJoined = value;
setGamePlayerLeft(null);
setGameAdminChanged(null);
setRemovedFromGame(null);
}
public GamePlayerLeft getGamePlayerLeft () {
return this.gamePlayerLeft;
}
public boolean isGamePlayerLeftSelected () {
return this.gamePlayerLeft != null;
}
private void setGamePlayerLeft (GamePlayerLeft value) {
this.gamePlayerLeft = value;
}
public void selectGamePlayerLeft (GamePlayerLeft value) {
this.gamePlayerLeft = value;
setGamePlayerJoined(null);
setGameAdminChanged(null);
setRemovedFromGame(null);
}
public GameAdminChanged getGameAdminChanged () {
return this.gameAdminChanged;
}
public boolean isGameAdminChangedSelected () {
return this.gameAdminChanged != null;
}
private void setGameAdminChanged (GameAdminChanged value) {
this.gameAdminChanged = value;
}
public void selectGameAdminChanged (GameAdminChanged value) {
this.gameAdminChanged = value;
setGamePlayerJoined(null);
setGamePlayerLeft(null);
setRemovedFromGame(null);
}
public RemovedFromGame getRemovedFromGame () {
return this.removedFromGame;
}
public boolean isRemovedFromGameSelected () {
return this.removedFromGame != null;
}
private void setRemovedFromGame (RemovedFromGame value) {
this.removedFromGame = value;
}
public void selectRemovedFromGame (RemovedFromGame value) {
this.removedFromGame = value;
setGamePlayerJoined(null);
setGamePlayerLeft(null);
setGameAdminChanged(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_GamePlayerNotificationChoiceType;
}
private static IASN1PreparedElementData preparedData_GamePlayerNotificationChoiceType = CoderFactory.getInstance().newPreparedElementData(GamePlayerNotificationChoiceType.class);
}
@ASN1Element ( name = "gamePlayerNotification", isOptional = false , hasTag = false , hasDefaultValue = false )
private GamePlayerNotificationChoiceType gamePlayerNotification = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public GamePlayerNotificationChoiceType getGamePlayerNotification () {
return this.gamePlayerNotification;
}
public void setGamePlayerNotification (GamePlayerNotificationChoiceType value) {
this.gamePlayerNotification = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_GamePlayerMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_GamePlayerMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(GamePlayerMessageSequenceType.class);
}
@ASN1Element ( name = "GamePlayerMessage", isOptional = false , hasTag = true, tag = 13,
tagClass = TagClass.Application , hasDefaultValue = false )
private GamePlayerMessageSequenceType value;
public GamePlayerMessage () {
}
public void setValue(GamePlayerMessageSequenceType value) {
this.value = value;
}
public GamePlayerMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,202 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "GameStartMessage" )
public class GameStartMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "GameStartMessage" , isSet = false )
public static class GameStartMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "startDealerPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId startDealerPlayerId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "gameStartMode" )
public static class GameStartModeChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameStartModeInitial", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private GameStartModeInitial gameStartModeInitial = null;
@ASN1Element ( name = "gameStartModeRejoin", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private GameStartModeRejoin gameStartModeRejoin = null;
public GameStartModeInitial getGameStartModeInitial () {
return this.gameStartModeInitial;
}
public boolean isGameStartModeInitialSelected () {
return this.gameStartModeInitial != null;
}
private void setGameStartModeInitial (GameStartModeInitial value) {
this.gameStartModeInitial = value;
}
public void selectGameStartModeInitial (GameStartModeInitial value) {
this.gameStartModeInitial = value;
setGameStartModeRejoin(null);
}
public GameStartModeRejoin getGameStartModeRejoin () {
return this.gameStartModeRejoin;
}
public boolean isGameStartModeRejoinSelected () {
return this.gameStartModeRejoin != null;
}
private void setGameStartModeRejoin (GameStartModeRejoin value) {
this.gameStartModeRejoin = value;
}
public void selectGameStartModeRejoin (GameStartModeRejoin value) {
this.gameStartModeRejoin = value;
setGameStartModeInitial(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_GameStartModeChoiceType;
}
private static IASN1PreparedElementData preparedData_GameStartModeChoiceType = CoderFactory.getInstance().newPreparedElementData(GameStartModeChoiceType.class);
}
@ASN1Element ( name = "gameStartMode", isOptional = false , hasTag = false , hasDefaultValue = false )
private GameStartModeChoiceType gameStartMode = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getStartDealerPlayerId () {
return this.startDealerPlayerId;
}
public void setStartDealerPlayerId (NonZeroId value) {
this.startDealerPlayerId = value;
}
public GameStartModeChoiceType getGameStartMode () {
return this.gameStartMode;
}
public void setGameStartMode (GameStartModeChoiceType value) {
this.gameStartMode = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_GameStartMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_GameStartMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(GameStartMessageSequenceType.class);
}
@ASN1Element ( name = "GameStartMessage", isOptional = false , hasTag = true, tag = 22,
tagClass = TagClass.Application , hasDefaultValue = false )
private GameStartMessageSequenceType value;
public GameStartMessage () {
}
public void setValue(GameStartMessageSequenceType value) {
this.value = value;
}
public GameStartMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,62 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameStartModeInitial", isSet = false )
public class GameStartModeInitial implements IASN1PreparedElement {
@ASN1SequenceOf( name = "playerSeats", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 2L,
max = 10L
)
@ASN1Element ( name = "playerSeats", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<NonZeroId> playerSeats = null;
public java.util.Collection<NonZeroId> getPlayerSeats () {
return this.playerSeats;
}
public void setPlayerSeats (java.util.Collection<NonZeroId> value) {
this.playerSeats = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartModeInitial.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,79 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GameStartModeRejoin", isSet = false )
public class GameStartModeRejoin implements IASN1PreparedElement {
@ASN1Element ( name = "handNum", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId handNum = null;
@ASN1SequenceOf( name = "rejoinPlayerData", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 2L,
max = 10L
)
@ASN1Element ( name = "rejoinPlayerData", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<RejoinPlayerData> rejoinPlayerData = null;
public NonZeroId getHandNum () {
return this.handNum;
}
public void setHandNum (NonZeroId value) {
this.handNum = value;
}
public java.util.Collection<RejoinPlayerData> getRejoinPlayerData () {
return this.rejoinPlayerData;
}
public void setRejoinPlayerData (java.util.Collection<RejoinPlayerData> value) {
this.rejoinPlayerData = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartModeRejoin.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,62 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "GuestLogin", isSet = false )
public class GuestLogin implements IASN1PreparedElement {
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 64L
)
@ASN1Element ( name = "nickName", isOptional = false , hasTag = false , hasDefaultValue = false )
private String nickName = null;
public String getNickName () {
return this.nickName;
}
public void setNickName (String value) {
this.nickName = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GuestLogin.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-61
View File
@@ -1,61 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "Guid" )
public class Guid implements IASN1PreparedElement {
@ASN1OctetString( name = "Guid" )
@ASN1SizeConstraint ( max = 16L )
private byte[] value = null;
public Guid() {
}
public Guid(byte[] value) {
this.value = value;
}
public Guid(BitString value) {
setValue(value);
}
public void setValue(byte[] value) {
this.value = value;
}
public void setValue(BitString btStr) {
this.value = btStr.getValue();
}
public byte[] getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Guid.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,237 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "HandStartMessage" )
public class HandStartMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "HandStartMessage" , isSet = false )
public static class HandStartMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "yourCards" )
public static class YourCardsChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "plainCards", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private PlainCards plainCards = null;
@ASN1Element ( name = "encryptedCards", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private EncryptedCards encryptedCards = null;
public PlainCards getPlainCards () {
return this.plainCards;
}
public boolean isPlainCardsSelected () {
return this.plainCards != null;
}
private void setPlainCards (PlainCards value) {
this.plainCards = value;
}
public void selectPlainCards (PlainCards value) {
this.plainCards = value;
setEncryptedCards(null);
}
public EncryptedCards getEncryptedCards () {
return this.encryptedCards;
}
public boolean isEncryptedCardsSelected () {
return this.encryptedCards != null;
}
private void setEncryptedCards (EncryptedCards value) {
this.encryptedCards = value;
}
public void selectEncryptedCards (EncryptedCards value) {
this.encryptedCards = value;
setPlainCards(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_YourCardsChoiceType;
}
private static IASN1PreparedElementData preparedData_YourCardsChoiceType = CoderFactory.getInstance().newPreparedElementData(YourCardsChoiceType.class);
}
@ASN1Element ( name = "yourCards", isOptional = false , hasTag = false , hasDefaultValue = false )
private YourCardsChoiceType yourCards = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 100000000L
)
@ASN1Element ( name = "smallBlind", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer smallBlind = null;
@ASN1SequenceOf( name = "seatStates", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 2L,
max = 10L
)
@ASN1Element ( name = "seatStates", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<NetPlayerState> seatStates = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public YourCardsChoiceType getYourCards () {
return this.yourCards;
}
public void setYourCards (YourCardsChoiceType value) {
this.yourCards = value;
}
public Integer getSmallBlind () {
return this.smallBlind;
}
public void setSmallBlind (Integer value) {
this.smallBlind = value;
}
public java.util.Collection<NetPlayerState> getSeatStates () {
return this.seatStates;
}
public void setSeatStates (java.util.Collection<NetPlayerState> value) {
this.seatStates = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_HandStartMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_HandStartMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(HandStartMessageSequenceType.class);
}
@ASN1Element ( name = "HandStartMessage", isOptional = false , hasTag = true, tag = 23,
tagClass = TagClass.Application , hasDefaultValue = false )
private HandStartMessageSequenceType value;
public HandStartMessage () {
}
public void setValue(HandStartMessageSequenceType value) {
this.value = value;
}
public HandStartMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(HandStartMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-58
View File
@@ -1,58 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "Id" )
public class Id implements IASN1PreparedElement {
@ASN1Integer( name = "Id" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 4294967295L
)
private Long value;
public Id() {
}
public Id(Long value) {
this.value = value;
}
public void setValue(Long value) {
this.value = value;
}
public Long getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Id.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,153 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "InitAckMessage" )
public class InitAckMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "InitAckMessage" , isSet = false )
public static class InitAckMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "yourSessionId", isOptional = false , hasTag = false , hasDefaultValue = false )
private Guid yourSessionId = null;
@ASN1Element ( name = "yourPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId yourPlayerId = null;
@ASN1Element ( name = "yourAvatar", isOptional = true , hasTag = false , hasDefaultValue = false )
private AvatarHash yourAvatar = null;
@ASN1Element ( name = "rejoinGameId", isOptional = true , hasTag = false , hasDefaultValue = false )
private NonZeroId rejoinGameId = null;
public Guid getYourSessionId () {
return this.yourSessionId;
}
public void setYourSessionId (Guid value) {
this.yourSessionId = value;
}
public NonZeroId getYourPlayerId () {
return this.yourPlayerId;
}
public void setYourPlayerId (NonZeroId value) {
this.yourPlayerId = value;
}
public AvatarHash getYourAvatar () {
return this.yourAvatar;
}
public boolean isYourAvatarPresent () {
return this.yourAvatar != null;
}
public void setYourAvatar (AvatarHash value) {
this.yourAvatar = value;
}
public NonZeroId getRejoinGameId () {
return this.rejoinGameId;
}
public boolean isRejoinGameIdPresent () {
return this.rejoinGameId != null;
}
public void setRejoinGameId (NonZeroId value) {
this.rejoinGameId = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_InitAckMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_InitAckMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InitAckMessageSequenceType.class);
}
@ASN1Element ( name = "InitAckMessage", isOptional = false , hasTag = true, tag = 3,
tagClass = TagClass.Application , hasDefaultValue = false )
private InitAckMessageSequenceType value;
public InitAckMessage () {
}
public void setValue(InitAckMessageSequenceType value) {
this.value = value;
}
public InitAckMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitAckMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-289
View File
@@ -1,289 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "InitMessage" )
public class InitMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "InitMessage" , isSet = false )
public static class InitMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "requestedVersion", isOptional = false , hasTag = false , hasDefaultValue = false )
private Version requestedVersion = null;
@ASN1Integer( name = "" )
@ASN1Element ( name = "buildId", isOptional = false , hasTag = false , hasDefaultValue = false )
private Long buildId = null;
@ASN1Element ( name = "myLastSessionId", isOptional = true , hasTag = false , hasDefaultValue = false )
private Guid myLastSessionId = null;
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 64L
)
@ASN1Element ( name = "authServerPassword", isOptional = true , hasTag = false , hasDefaultValue = false )
private String authServerPassword = null;
@ASN1PreparedElement
@ASN1Choice ( name = "login" )
public static class LoginChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "guestLogin", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private GuestLogin guestLogin = null;
@ASN1Element ( name = "authenticatedLogin", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private AuthenticatedLogin authenticatedLogin = null;
@ASN1Element ( name = "unauthenticatedLogin", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private UnauthenticatedLogin unauthenticatedLogin = null;
public GuestLogin getGuestLogin () {
return this.guestLogin;
}
public boolean isGuestLoginSelected () {
return this.guestLogin != null;
}
private void setGuestLogin (GuestLogin value) {
this.guestLogin = value;
}
public void selectGuestLogin (GuestLogin value) {
this.guestLogin = value;
setAuthenticatedLogin(null);
setUnauthenticatedLogin(null);
}
public AuthenticatedLogin getAuthenticatedLogin () {
return this.authenticatedLogin;
}
public boolean isAuthenticatedLoginSelected () {
return this.authenticatedLogin != null;
}
private void setAuthenticatedLogin (AuthenticatedLogin value) {
this.authenticatedLogin = value;
}
public void selectAuthenticatedLogin (AuthenticatedLogin value) {
this.authenticatedLogin = value;
setGuestLogin(null);
setUnauthenticatedLogin(null);
}
public UnauthenticatedLogin getUnauthenticatedLogin () {
return this.unauthenticatedLogin;
}
public boolean isUnauthenticatedLoginSelected () {
return this.unauthenticatedLogin != null;
}
private void setUnauthenticatedLogin (UnauthenticatedLogin value) {
this.unauthenticatedLogin = value;
}
public void selectUnauthenticatedLogin (UnauthenticatedLogin value) {
this.unauthenticatedLogin = value;
setGuestLogin(null);
setAuthenticatedLogin(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_LoginChoiceType;
}
private static IASN1PreparedElementData preparedData_LoginChoiceType = CoderFactory.getInstance().newPreparedElementData(LoginChoiceType.class);
}
@ASN1Element ( name = "login", isOptional = false , hasTag = false , hasDefaultValue = false )
private LoginChoiceType login = null;
public Version getRequestedVersion () {
return this.requestedVersion;
}
public void setRequestedVersion (Version value) {
this.requestedVersion = value;
}
public Long getBuildId () {
return this.buildId;
}
public void setBuildId (Long value) {
this.buildId = value;
}
public Guid getMyLastSessionId () {
return this.myLastSessionId;
}
public boolean isMyLastSessionIdPresent () {
return this.myLastSessionId != null;
}
public void setMyLastSessionId (Guid value) {
this.myLastSessionId = value;
}
public String getAuthServerPassword () {
return this.authServerPassword;
}
public boolean isAuthServerPasswordPresent () {
return this.authServerPassword != null;
}
public void setAuthServerPassword (String value) {
this.authServerPassword = value;
}
public LoginChoiceType getLogin () {
return this.login;
}
public void setLogin (LoginChoiceType value) {
this.login = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_InitMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_InitMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InitMessageSequenceType.class);
}
@ASN1Element ( name = "InitMessage", isOptional = false , hasTag = true, tag = 1,
tagClass = TagClass.Application , hasDefaultValue = false )
private InitMessageSequenceType value;
public InitMessage () {
}
public void setValue(InitMessageSequenceType value) {
this.value = value;
}
public InitMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,58 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "InitialAmountOfMoney" )
public class InitialAmountOfMoney implements IASN1PreparedElement {
@ASN1Integer( name = "InitialAmountOfMoney" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 1000000L
)
private Integer value;
public InitialAmountOfMoney() {
}
public InitialAmountOfMoney(Integer value) {
this.value = value;
}
public void setValue(Integer value) {
this.value = value;
}
public Integer getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitialAmountOfMoney.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,58 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "InitialNonZeroAmountOfMoney" )
public class InitialNonZeroAmountOfMoney implements IASN1PreparedElement {
@ASN1Integer( name = "InitialNonZeroAmountOfMoney" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 1000000L
)
private Integer value;
public InitialNonZeroAmountOfMoney() {
}
public InitialNonZeroAmountOfMoney(Integer value) {
this.value = value;
}
public void setValue(Integer value) {
this.value = value;
}
public Integer getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitialNonZeroAmountOfMoney.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,128 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "InviteNotifyMessage" )
public class InviteNotifyMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "InviteNotifyMessage" , isSet = false )
public static class InviteNotifyMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "playerIdWho", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerIdWho = null;
@ASN1Element ( name = "playerIdByWhom", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerIdByWhom = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPlayerIdWho () {
return this.playerIdWho;
}
public void setPlayerIdWho (NonZeroId value) {
this.playerIdWho = value;
}
public NonZeroId getPlayerIdByWhom () {
return this.playerIdByWhom;
}
public void setPlayerIdByWhom (NonZeroId value) {
this.playerIdByWhom = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_InviteNotifyMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_InviteNotifyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InviteNotifyMessageSequenceType.class);
}
@ASN1Element ( name = "InviteNotifyMessage", isOptional = false , hasTag = true, tag = 17,
tagClass = TagClass.Application , hasDefaultValue = false )
private InviteNotifyMessageSequenceType value;
public InviteNotifyMessage () {
}
public void setValue(InviteNotifyMessageSequenceType value) {
this.value = value;
}
public InviteNotifyMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InviteNotifyMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "InvitePlayerToGameMessage" )
public class InvitePlayerToGameMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "InvitePlayerToGameMessage" , isSet = false )
public static class InvitePlayerToGameMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_InvitePlayerToGameMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_InvitePlayerToGameMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InvitePlayerToGameMessageSequenceType.class);
}
@ASN1Element ( name = "InvitePlayerToGameMessage", isOptional = false , hasTag = true, tag = 16,
tagClass = TagClass.Application , hasDefaultValue = false )
private InvitePlayerToGameMessageSequenceType value;
public InvitePlayerToGameMessage () {
}
public void setValue(InvitePlayerToGameMessageSequenceType value) {
this.value = value;
}
public InvitePlayerToGameMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InvitePlayerToGameMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,83 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "JoinExistingGame", isSet = false )
public class JoinExistingGame implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 64L
)
@ASN1Element ( name = "password", isOptional = true , hasTag = false , hasDefaultValue = false )
private String password = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public String getPassword () {
return this.password;
}
public boolean isPasswordPresent () {
return this.password != null;
}
public void setPassword (String value) {
this.password = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinExistingGame.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,70 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "JoinGameAck", isSet = false )
public class JoinGameAck implements IASN1PreparedElement {
@ASN1Boolean( name = "" )
@ASN1Element ( name = "areYouGameAdmin", isOptional = false , hasTag = false , hasDefaultValue = false )
private Boolean areYouGameAdmin = null;
@ASN1Element ( name = "gameInfo", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameInfo gameInfo = null;
public Boolean getAreYouGameAdmin () {
return this.areYouGameAdmin;
}
public void setAreYouGameAdmin (Boolean value) {
this.areYouGameAdmin = value;
}
public NetGameInfo getGameInfo () {
return this.gameInfo;
}
public void setGameInfo (NetGameInfo value) {
this.gameInfo = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameAck.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,113 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "JoinGameFailed", isSet = false )
public class JoinGameFailed implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Enum (
name = "JoinGameFailureReasonEnumType"
)
public static class JoinGameFailureReasonEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "invalidGame", hasTag = true , tag = 1 )
invalidGame ,
@ASN1EnumItem ( name = "gameIsFull", hasTag = true , tag = 2 )
gameIsFull ,
@ASN1EnumItem ( name = "gameIsRunning", hasTag = true , tag = 3 )
gameIsRunning ,
@ASN1EnumItem ( name = "invalidPassword", hasTag = true , tag = 4 )
invalidPassword ,
@ASN1EnumItem ( name = "notAllowedAsGuest", hasTag = true , tag = 5 )
notAllowedAsGuest ,
@ASN1EnumItem ( name = "notInvited", hasTag = true , tag = 6 )
notInvited ,
@ASN1EnumItem ( name = "gameNameInUse", hasTag = true , tag = 7 )
gameNameInUse ,
@ASN1EnumItem ( name = "badGameName", hasTag = true , tag = 8 )
badGameName ,
@ASN1EnumItem ( name = "invalidSettings", hasTag = true , tag = 9 )
invalidSettings ,
@ASN1EnumItem ( name = "ipAddressBlocked", hasTag = true , tag = 10 )
ipAddressBlocked ,
@ASN1EnumItem ( name = "rejoinFailed", hasTag = true , tag = 11 )
rejoinFailed ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameFailureReasonEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "joinGameFailureReason", isOptional = false , hasTag = false , hasDefaultValue = false )
private JoinGameFailureReasonEnumType joinGameFailureReason = null;
public JoinGameFailureReasonEnumType getJoinGameFailureReason () {
return this.joinGameFailureReason;
}
public void setJoinGameFailureReason (JoinGameFailureReasonEnumType value) {
this.joinGameFailureReason = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameFailed.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,185 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "JoinGameReplyMessage" )
public class JoinGameReplyMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "JoinGameReplyMessage" , isSet = false )
public static class JoinGameReplyMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "joinGameResult" )
public static class JoinGameResultChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "joinGameAck", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private JoinGameAck joinGameAck = null;
@ASN1Element ( name = "joinGameFailed", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private JoinGameFailed joinGameFailed = null;
public JoinGameAck getJoinGameAck () {
return this.joinGameAck;
}
public boolean isJoinGameAckSelected () {
return this.joinGameAck != null;
}
private void setJoinGameAck (JoinGameAck value) {
this.joinGameAck = value;
}
public void selectJoinGameAck (JoinGameAck value) {
this.joinGameAck = value;
setJoinGameFailed(null);
}
public JoinGameFailed getJoinGameFailed () {
return this.joinGameFailed;
}
public boolean isJoinGameFailedSelected () {
return this.joinGameFailed != null;
}
private void setJoinGameFailed (JoinGameFailed value) {
this.joinGameFailed = value;
}
public void selectJoinGameFailed (JoinGameFailed value) {
this.joinGameFailed = value;
setJoinGameAck(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_JoinGameResultChoiceType;
}
private static IASN1PreparedElementData preparedData_JoinGameResultChoiceType = CoderFactory.getInstance().newPreparedElementData(JoinGameResultChoiceType.class);
}
@ASN1Element ( name = "joinGameResult", isOptional = false , hasTag = false , hasDefaultValue = false )
private JoinGameResultChoiceType joinGameResult = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public JoinGameResultChoiceType getJoinGameResult () {
return this.joinGameResult;
}
public void setJoinGameResult (JoinGameResultChoiceType value) {
this.joinGameResult = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_JoinGameReplyMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_JoinGameReplyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(JoinGameReplyMessageSequenceType.class);
}
@ASN1Element ( name = "JoinGameReplyMessage", isOptional = false , hasTag = true, tag = 12,
tagClass = TagClass.Application , hasDefaultValue = false )
private JoinGameReplyMessageSequenceType value;
public JoinGameReplyMessage () {
}
public void setValue(JoinGameReplyMessageSequenceType value) {
this.value = value;
}
public JoinGameReplyMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameReplyMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,220 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "JoinGameRequestMessage" )
public class JoinGameRequestMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "JoinGameRequestMessage" , isSet = false )
public static class JoinGameRequestMessageSequenceType implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Choice ( name = "joinGameAction" )
public static class JoinGameActionChoiceType implements IASN1PreparedElement {
@ASN1Element ( name = "joinExistingGame", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private JoinExistingGame joinExistingGame = null;
@ASN1Element ( name = "joinNewGame", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private JoinNewGame joinNewGame = null;
@ASN1Element ( name = "rejoinExistingGame", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false )
private RejoinExistingGame rejoinExistingGame = null;
public JoinExistingGame getJoinExistingGame () {
return this.joinExistingGame;
}
public boolean isJoinExistingGameSelected () {
return this.joinExistingGame != null;
}
private void setJoinExistingGame (JoinExistingGame value) {
this.joinExistingGame = value;
}
public void selectJoinExistingGame (JoinExistingGame value) {
this.joinExistingGame = value;
setJoinNewGame(null);
setRejoinExistingGame(null);
}
public JoinNewGame getJoinNewGame () {
return this.joinNewGame;
}
public boolean isJoinNewGameSelected () {
return this.joinNewGame != null;
}
private void setJoinNewGame (JoinNewGame value) {
this.joinNewGame = value;
}
public void selectJoinNewGame (JoinNewGame value) {
this.joinNewGame = value;
setJoinExistingGame(null);
setRejoinExistingGame(null);
}
public RejoinExistingGame getRejoinExistingGame () {
return this.rejoinExistingGame;
}
public boolean isRejoinExistingGameSelected () {
return this.rejoinExistingGame != null;
}
private void setRejoinExistingGame (RejoinExistingGame value) {
this.rejoinExistingGame = value;
}
public void selectRejoinExistingGame (RejoinExistingGame value) {
this.rejoinExistingGame = value;
setJoinExistingGame(null);
setJoinNewGame(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_JoinGameActionChoiceType;
}
private static IASN1PreparedElementData preparedData_JoinGameActionChoiceType = CoderFactory.getInstance().newPreparedElementData(JoinGameActionChoiceType.class);
}
@ASN1Element ( name = "joinGameAction", isOptional = false , hasTag = false , hasDefaultValue = false )
private JoinGameActionChoiceType joinGameAction = null;
@ASN1Boolean( name = "" )
@ASN1Element ( name = "autoLeave", isOptional = false , hasTag = false , hasDefaultValue = false )
private Boolean autoLeave = null;
public JoinGameActionChoiceType getJoinGameAction () {
return this.joinGameAction;
}
public void setJoinGameAction (JoinGameActionChoiceType value) {
this.joinGameAction = value;
}
public Boolean getAutoLeave () {
return this.autoLeave;
}
public void setAutoLeave (Boolean value) {
this.autoLeave = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_JoinGameRequestMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_JoinGameRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(JoinGameRequestMessageSequenceType.class);
}
@ASN1Element ( name = "JoinGameRequestMessage", isOptional = false , hasTag = true, tag = 11,
tagClass = TagClass.Application , hasDefaultValue = false )
private JoinGameRequestMessageSequenceType value;
public JoinGameRequestMessage () {
}
public void setValue(JoinGameRequestMessageSequenceType value) {
this.value = value;
}
public JoinGameRequestMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameRequestMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,83 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "JoinNewGame", isSet = false )
public class JoinNewGame implements IASN1PreparedElement {
@ASN1Element ( name = "gameInfo", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameInfo gameInfo = null;
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 64L
)
@ASN1Element ( name = "password", isOptional = true , hasTag = false , hasDefaultValue = false )
private String password = null;
public NetGameInfo getGameInfo () {
return this.gameInfo;
}
public void setGameInfo (NetGameInfo value) {
this.gameInfo = value;
}
public String getPassword () {
return this.password;
}
public boolean isPasswordPresent () {
return this.password != null;
}
public void setPassword (String value) {
this.password = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinNewGame.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,186 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "KickPetitionUpdateMessage" )
public class KickPetitionUpdateMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "KickPetitionUpdateMessage" , isSet = false )
public static class KickPetitionUpdateMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId petitionId = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 9L
)
@ASN1Element ( name = "numVotesAgainstKicking", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer numVotesAgainstKicking = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 9L
)
@ASN1Element ( name = "numVotesInFavourOfKicking", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer numVotesInFavourOfKicking = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 9L
)
@ASN1Element ( name = "numVotesNeededToKick", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer numVotesNeededToKick = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPetitionId () {
return this.petitionId;
}
public void setPetitionId (NonZeroId value) {
this.petitionId = value;
}
public Integer getNumVotesAgainstKicking () {
return this.numVotesAgainstKicking;
}
public void setNumVotesAgainstKicking (Integer value) {
this.numVotesAgainstKicking = value;
}
public Integer getNumVotesInFavourOfKicking () {
return this.numVotesInFavourOfKicking;
}
public void setNumVotesInFavourOfKicking (Integer value) {
this.numVotesInFavourOfKicking = value;
}
public Integer getNumVotesNeededToKick () {
return this.numVotesNeededToKick;
}
public void setNumVotesNeededToKick (Integer value) {
this.numVotesNeededToKick = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_KickPetitionUpdateMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_KickPetitionUpdateMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(KickPetitionUpdateMessageSequenceType.class);
}
@ASN1Element ( name = "KickPetitionUpdateMessage", isOptional = false , hasTag = true, tag = 69,
tagClass = TagClass.Application , hasDefaultValue = false )
private KickPetitionUpdateMessageSequenceType value;
public KickPetitionUpdateMessage () {
}
public void setValue(KickPetitionUpdateMessageSequenceType value) {
this.value = value;
}
public KickPetitionUpdateMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(KickPetitionUpdateMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,111 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "KickPlayerRequestMessage" )
public class KickPlayerRequestMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "KickPlayerRequestMessage" , isSet = false )
public static class KickPlayerRequestMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_KickPlayerRequestMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_KickPlayerRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(KickPlayerRequestMessageSequenceType.class);
}
@ASN1Element ( name = "KickPlayerRequestMessage", isOptional = false , hasTag = true, tag = 14,
tagClass = TagClass.Application , hasDefaultValue = false )
private KickPlayerRequestMessageSequenceType value;
public KickPlayerRequestMessage () {
}
public void setValue(KickPlayerRequestMessageSequenceType value) {
this.value = value;
}
public KickPlayerRequestMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(KickPlayerRequestMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,94 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "LeaveGameRequestMessage" )
public class LeaveGameRequestMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "LeaveGameRequestMessage" , isSet = false )
public static class LeaveGameRequestMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_LeaveGameRequestMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_LeaveGameRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(LeaveGameRequestMessageSequenceType.class);
}
@ASN1Element ( name = "LeaveGameRequestMessage", isOptional = false , hasTag = true, tag = 15,
tagClass = TagClass.Application , hasDefaultValue = false )
private LeaveGameRequestMessageSequenceType value;
public LeaveGameRequestMessage () {
}
public void setValue(LeaveGameRequestMessageSequenceType value) {
this.value = value;
}
public LeaveGameRequestMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(LeaveGameRequestMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,162 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1BoxedType ( name = "MyActionRequestMessage" )
public class MyActionRequestMessage implements IASN1PreparedElement {
@ASN1PreparedElement
@ASN1Sequence ( name = "MyActionRequestMessage" , isSet = false )
public static class MyActionRequestMessageSequenceType implements IASN1PreparedElement {
@ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId gameId = null;
@ASN1Element ( name = "handNum", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId handNum = null;
@ASN1Element ( name = "gameState", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameState gameState = null;
@ASN1Element ( name = "myAction", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetPlayerAction myAction = null;
@ASN1Element ( name = "myRelativeBet", isOptional = false , hasTag = false , hasDefaultValue = false )
private AmountOfMoney myRelativeBet = null;
public NonZeroId getGameId () {
return this.gameId;
}
public void setGameId (NonZeroId value) {
this.gameId = value;
}
public NonZeroId getHandNum () {
return this.handNum;
}
public void setHandNum (NonZeroId value) {
this.handNum = value;
}
public NetGameState getGameState () {
return this.gameState;
}
public void setGameState (NetGameState value) {
this.gameState = value;
}
public NetPlayerAction getMyAction () {
return this.myAction;
}
public void setMyAction (NetPlayerAction value) {
this.myAction = value;
}
public AmountOfMoney getMyRelativeBet () {
return this.myRelativeBet;
}
public void setMyRelativeBet (AmountOfMoney value) {
this.myRelativeBet = value;
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_MyActionRequestMessageSequenceType;
}
private static IASN1PreparedElementData preparedData_MyActionRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(MyActionRequestMessageSequenceType.class);
}
@ASN1Element ( name = "MyActionRequestMessage", isOptional = false , hasTag = true, tag = 25,
tagClass = TagClass.Application , hasDefaultValue = false )
private MyActionRequestMessageSequenceType value;
public MyActionRequestMessage () {
}
public void setValue(MyActionRequestMessageSequenceType value) {
this.value = value;
}
public MyActionRequestMessageSequenceType getValue() {
return this.value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(MyActionRequestMessage.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,62 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Enum (
name = "NetAvatarType"
)
public class NetAvatarType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "avatarImagePng", hasTag = true , tag = 1 )
avatarImagePng ,
@ASN1EnumItem ( name = "avatarImageJpg", hasTag = true , tag = 2 )
avatarImageJpg ,
@ASN1EnumItem ( name = "avatarImageGif", hasTag = true , tag = 3 )
avatarImageGif ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetAvatarType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
-481
View File
@@ -1,481 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Sequence ( name = "NetGameInfo", isSet = false )
public class NetGameInfo implements IASN1PreparedElement {
@ASN1String( name = "",
stringType = UniversalTag.UTF8String , isUCS = false )
@ASN1ValueRangeConstraint (
min = 1L,
max = 64L
)
@ASN1Element ( name = "gameName", isOptional = false , hasTag = false , hasDefaultValue = false )
private String gameName = null;
@ASN1PreparedElement
@ASN1Enum (
name = "NetGameTypeEnumType"
)
public static class NetGameTypeEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "normalGame", hasTag = true , tag = 1 )
normalGame ,
@ASN1EnumItem ( name = "registeredOnlyGame", hasTag = true , tag = 2 )
registeredOnlyGame ,
@ASN1EnumItem ( name = "inviteOnlyGame", hasTag = true , tag = 3 )
inviteOnlyGame ,
@ASN1EnumItem ( name = "rankingGame", hasTag = true , tag = 4 )
rankingGame ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameTypeEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "netGameType", isOptional = false , hasTag = false , hasDefaultValue = false )
private NetGameTypeEnumType netGameType = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 2L,
max = 10L
)
@ASN1Element ( name = "maxNumPlayers", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer maxNumPlayers = null;
@ASN1PreparedElement
@ASN1Choice ( name = "raiseIntervalMode" )
public static class RaiseIntervalModeChoiceType implements IASN1PreparedElement {
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 1000L
)
@ASN1Element ( name = "raiseEveryHands", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
private Integer raiseEveryHands = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 1000L
)
@ASN1Element ( name = "raiseEveryMinutes", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private Integer raiseEveryMinutes = null;
public Integer getRaiseEveryHands () {
return this.raiseEveryHands;
}
public boolean isRaiseEveryHandsSelected () {
return this.raiseEveryHands != null;
}
private void setRaiseEveryHands (Integer value) {
this.raiseEveryHands = value;
}
public void selectRaiseEveryHands (Integer value) {
this.raiseEveryHands = value;
setRaiseEveryMinutes(null);
}
public Integer getRaiseEveryMinutes () {
return this.raiseEveryMinutes;
}
public boolean isRaiseEveryMinutesSelected () {
return this.raiseEveryMinutes != null;
}
private void setRaiseEveryMinutes (Integer value) {
this.raiseEveryMinutes = value;
}
public void selectRaiseEveryMinutes (Integer value) {
this.raiseEveryMinutes = value;
setRaiseEveryHands(null);
}
public void initWithDefaults() {
}
public IASN1PreparedElementData getPreparedData() {
return preparedData_RaiseIntervalModeChoiceType;
}
private static IASN1PreparedElementData preparedData_RaiseIntervalModeChoiceType = CoderFactory.getInstance().newPreparedElementData(RaiseIntervalModeChoiceType.class);
}
@ASN1Element ( name = "raiseIntervalMode", isOptional = false , hasTag = false , hasDefaultValue = false )
private RaiseIntervalModeChoiceType raiseIntervalMode = null;
@ASN1PreparedElement
@ASN1Enum (
name = "EndRaiseModeEnumType"
)
public static class EndRaiseModeEnumType implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "doubleBlinds", hasTag = true , tag = 1 )
doubleBlinds ,
@ASN1EnumItem ( name = "raiseByEndValue", hasTag = true , tag = 2 )
raiseByEndValue ,
@ASN1EnumItem ( name = "keepLastBlind", hasTag = true , tag = 3 )
keepLastBlind ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndRaiseModeEnumType.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@ASN1Element ( name = "endRaiseMode", isOptional = false , hasTag = false , hasDefaultValue = false )
private EndRaiseModeEnumType endRaiseMode = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 11L
)
@ASN1Element ( name = "proposedGuiSpeed", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer proposedGuiSpeed = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 5L,
max = 20L
)
@ASN1Element ( name = "delayBetweenHands", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer delayBetweenHands = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 60L
)
@ASN1Element ( name = "playerActionTimeout", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer playerActionTimeout = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 20000L
)
@ASN1Element ( name = "firstSmallBlind", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer firstSmallBlind = null;
@ASN1Element ( name = "endRaiseSmallBlindValue", isOptional = false , hasTag = false , hasDefaultValue = false )
private InitialAmountOfMoney endRaiseSmallBlindValue = null;
@ASN1Element ( name = "startMoney", isOptional = false , hasTag = false , hasDefaultValue = false )
private InitialNonZeroAmountOfMoney startMoney = null;
@ASN1SequenceOf( name = "manualBlinds", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 0L,
max = 30L
)
@ASN1Element ( name = "manualBlinds", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<InitialNonZeroAmountOfMoney> manualBlinds = null;
public String getGameName () {
return this.gameName;
}
public void setGameName (String value) {
this.gameName = value;
}
public NetGameTypeEnumType getNetGameType () {
return this.netGameType;
}
public void setNetGameType (NetGameTypeEnumType value) {
this.netGameType = value;
}
public Integer getMaxNumPlayers () {
return this.maxNumPlayers;
}
public void setMaxNumPlayers (Integer value) {
this.maxNumPlayers = value;
}
public RaiseIntervalModeChoiceType getRaiseIntervalMode () {
return this.raiseIntervalMode;
}
public void setRaiseIntervalMode (RaiseIntervalModeChoiceType value) {
this.raiseIntervalMode = value;
}
public EndRaiseModeEnumType getEndRaiseMode () {
return this.endRaiseMode;
}
public void setEndRaiseMode (EndRaiseModeEnumType value) {
this.endRaiseMode = value;
}
public Integer getProposedGuiSpeed () {
return this.proposedGuiSpeed;
}
public void setProposedGuiSpeed (Integer value) {
this.proposedGuiSpeed = value;
}
public Integer getDelayBetweenHands () {
return this.delayBetweenHands;
}
public void setDelayBetweenHands (Integer value) {
this.delayBetweenHands = value;
}
public Integer getPlayerActionTimeout () {
return this.playerActionTimeout;
}
public void setPlayerActionTimeout (Integer value) {
this.playerActionTimeout = value;
}
public Integer getFirstSmallBlind () {
return this.firstSmallBlind;
}
public void setFirstSmallBlind (Integer value) {
this.firstSmallBlind = value;
}
public InitialAmountOfMoney getEndRaiseSmallBlindValue () {
return this.endRaiseSmallBlindValue;
}
public void setEndRaiseSmallBlindValue (InitialAmountOfMoney value) {
this.endRaiseSmallBlindValue = value;
}
public InitialNonZeroAmountOfMoney getStartMoney () {
return this.startMoney;
}
public void setStartMoney (InitialNonZeroAmountOfMoney value) {
this.startMoney = value;
}
public java.util.Collection<InitialNonZeroAmountOfMoney> getManualBlinds () {
return this.manualBlinds;
}
public void setManualBlinds (java.util.Collection<InitialNonZeroAmountOfMoney> value) {
this.manualBlinds = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameInfo.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -1,62 +0,0 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Enum (
name = "NetGameMode"
)
public class NetGameMode implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "gameCreated", hasTag = true , tag = 1 )
gameCreated ,
@ASN1EnumItem ( name = "gameStarted", hasTag = true , tag = 2 )
gameStarted ,
@ASN1EnumItem ( name = "gameClosed", hasTag = true , tag = 3 )
gameClosed ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameMode.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}

Some files were not shown because too many files have changed in this diff Show More