Adding tests for ranking games, fixing small issue when creating ranking games.

This commit is contained in:
lotodore
2010-11-12 22:43:17 +00:00
parent 5d22018534
commit 67b01746da
9 changed files with 139 additions and 93 deletions
@@ -40,6 +40,11 @@ import org.bn.types.*;
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;
@@ -58,6 +63,8 @@ import org.bn.types.*;
this.chatRequestTypeLobby = value;
setChatRequestTypeGame(null);
setChatRequestTypePrivate(null);
}
@@ -81,6 +88,33 @@ import org.bn.types.*;
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);
}
+8 -7
View File
@@ -322,16 +322,17 @@ import org.bn.types.*;
private Integer startMoney = null;
@ASN1Integer( name = "" )
@ASN1ValueRangeConstraint (
min = 1L,
max = 1000000L
)
@ASN1SequenceOf( name = "manualBlinds", isSetOf = false )
@ASN1ValueRangeConstraint (
min = 0L,
max = 30L
)
@ASN1Element ( name = "manualBlinds", isOptional = false , hasTag = false , hasDefaultValue = false )
private java.util.Collection<Integer> manualBlinds = null;