Token types for correct token image displayed

This commit is contained in:
magenoxx 2012-06-25 13:15:25 +04:00
parent cac2490f77
commit 11de9f9ce3

View file

@ -50,6 +50,21 @@ public class Token extends MageObjectImpl<Token> {
private UUID lastAddedTokenId;
private int tokenType;
public enum Type {
FIRST(1),
SECOND(2);
int code;
Type(int code) {
this.code = code;
}
int getCode() {
return this.code;
}
}
public Token(String name, String description) {
this.name = name;
this.description = description;