Adding new java based test cases.
This commit is contained in:
@@ -0,0 +1,138 @@
|
||||
|
||||
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;
|
||||
|
||||
|
||||
@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 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 java.util.Collection<NonZeroId> getPlayerSeats () {
|
||||
return this.playerSeats;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setPlayerSeats (java.util.Collection<NonZeroId> value) {
|
||||
this.playerSeats = 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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user