Regenerating protocol files for tests.

This commit is contained in:
lotodore
2011-07-17 12:19:54 +00:00
parent e109c0037d
commit d14d1d4a2b
9 changed files with 407 additions and 16 deletions
@@ -35,19 +35,83 @@ import org.bn.types.*;
private NonZeroId startDealerPlayerId = null;
@ASN1SequenceOf( name = "playerSeats", isSetOf = false )
@ASN1ValueRangeConstraint (
@ASN1PreparedElement
@ASN1Choice ( name = "gameStartMode" )
public static class GameStartModeChoiceType implements IASN1PreparedElement {
min = 2L,
@ASN1Element ( name = "gameStartModeInitial", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false )
max = 10L
private GameStartModeInitial gameStartModeInitial = null;
)
@ASN1Element ( name = "playerSeats", isOptional = false , hasTag = false , hasDefaultValue = false )
@ASN1Element ( name = "gameStartModeRejoin", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false )
private java.util.Collection<NonZeroId> playerSeats = null;
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;
@@ -75,14 +139,14 @@ import org.bn.types.*;
public java.util.Collection<NonZeroId> getPlayerSeats () {
return this.playerSeats;
public GameStartModeChoiceType getGameStartMode () {
return this.gameStartMode;
}
public void setPlayerSeats (java.util.Collection<NonZeroId> value) {
this.playerSeats = value;
public void setGameStartMode (GameStartModeChoiceType value) {
this.gameStartMode = value;
}
@@ -0,0 +1,62 @@
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;
}
}
@@ -0,0 +1,62 @@
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 {
@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 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;
}
}
@@ -40,6 +40,11 @@ import org.bn.types.*;
private AvatarHash yourAvatar = null;
@ASN1Element ( name = "rejoinGameId", isOptional = true , hasTag = false , hasDefaultValue = false )
private NonZeroId rejoinGameId = null;
public Guid getYourSessionId () {
return this.yourSessionId;
@@ -81,6 +86,22 @@ import org.bn.types.*;
public NonZeroId getRejoinGameId () {
return this.rejoinGameId;
}
public boolean isRejoinGameIdPresent () {
return this.rejoinGameId != null;
}
public void setRejoinGameId (NonZeroId value) {
this.rejoinGameId = value;
}
public void initWithDefaults() {
@@ -36,6 +36,11 @@ import org.bn.types.*;
private Long buildId = null;
@ASN1Element ( name = "myLastSessionId", isOptional = false , hasTag = false , hasDefaultValue = false )
private Guid myLastSessionId = null;
@ASN1PreparedElement
@ASN1Choice ( name = "login" )
@@ -174,6 +179,18 @@ import org.bn.types.*;
public Guid getMyLastSessionId () {
return this.myLastSessionId;
}
public void setMyLastSessionId (Guid value) {
this.myLastSessionId = value;
}
public LoginChoiceType getLogin () {
return this.login;
}
@@ -47,6 +47,8 @@ import org.bn.types.*;
invalidSettings ,
@ASN1EnumItem ( name = "ipAddressBlocked", hasTag = true , tag = 10 )
ipAddressBlocked ,
@ASN1EnumItem ( name = "rejoinFailed", hasTag = true , tag = 11 )
rejoinFailed ,
}
private EnumType value;
@@ -40,6 +40,11 @@ import org.bn.types.*;
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;
@@ -59,6 +64,8 @@ import org.bn.types.*;
setJoinNewGame(null);
setRejoinExistingGame(null);
}
@@ -82,6 +89,33 @@ import org.bn.types.*;
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);
}
@@ -0,0 +1,52 @@
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 = "RejoinExistingGame", isSet = false )
public class RejoinExistingGame 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(RejoinExistingGame.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -0,0 +1,77 @@
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 = "RejoinPlayerData", isSet = false )
public class RejoinPlayerData implements IASN1PreparedElement {
@ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false )
private NonZeroId playerId = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 10000000L
)
@ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false )
private Integer playerMoney = null;
public NonZeroId getPlayerId () {
return this.playerId;
}
public void setPlayerId (NonZeroId value) {
this.playerId = value;
}
public Integer getPlayerMoney () {
return this.playerMoney;
}
public void setPlayerMoney (Integer value) {
this.playerMoney = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejoinPlayerData.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}