Skip to content
Snippets Groups Projects
Commit d670f313 authored by Jan Tymel's avatar Jan Tymel
Browse files

Add two missing attributes to BaseLevel

parent a9d30c3e
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,8 @@ public abstract class BaseLevel { ...@@ -24,6 +24,8 @@ public abstract class BaseLevel {
private String title; private String title;
private String estimatedDuration; private String estimatedDuration;
private Long maxScore; private Long maxScore;
private Integer maxCommands;
private Integer maxWrongFlags;
@Column(name = "order_in_training_definition", nullable = false) @Column(name = "order_in_training_definition", nullable = false)
private Integer order; private Integer order;
...@@ -89,9 +91,33 @@ public abstract class BaseLevel { ...@@ -89,9 +91,33 @@ public abstract class BaseLevel {
this.trainingDefinitionId = trainingDefinition; this.trainingDefinitionId = trainingDefinition;
} }
public Integer getMaxCommands() {
return maxCommands;
}
public void setMaxCommands(Integer maxCommands) {
this.maxCommands = maxCommands;
}
public Integer getMaxWrongFlags() {
return maxWrongFlags;
}
public void setMaxWrongFlags(Integer maxWrongFlags) {
this.maxWrongFlags = maxWrongFlags;
}
@Override @Override
public String toString() { public String toString() {
return "BaseLevel{" + "title='" + title + '\'' + ", estimatedDuration='" + estimatedDuration + '\'' + return "BaseLevel{" +
", maxScore=" + maxScore + '}'; "id=" + id +
", title='" + title + '\'' +
", estimatedDuration='" + estimatedDuration + '\'' +
", maxScore=" + maxScore +
", maxCommands=" + maxCommands +
", maxWrongFlags=" + maxWrongFlags +
", order=" + order +
", trainingDefinitionId=" + trainingDefinitionId +
'}';
} }
} }
...@@ -12,6 +12,8 @@ public abstract class BaseLevelDto implements Serializable { ...@@ -12,6 +12,8 @@ public abstract class BaseLevelDto implements Serializable {
private String estimatedDuration; private String estimatedDuration;
private Long maxScore; private Long maxScore;
private LevelType type; private LevelType type;
private Integer maxCommands;
private Integer maxWrongFlags;
public Long getId() { public Long getId() {
return id; return id;
...@@ -61,6 +63,22 @@ public abstract class BaseLevelDto implements Serializable { ...@@ -61,6 +63,22 @@ public abstract class BaseLevelDto implements Serializable {
this.type = type; this.type = type;
} }
public Integer getMaxCommands() {
return maxCommands;
}
public void setMaxCommands(Integer maxCommands) {
this.maxCommands = maxCommands;
}
public Integer getMaxWrongFlags() {
return maxWrongFlags;
}
public void setMaxWrongFlags(Integer maxWrongFlags) {
this.maxWrongFlags = maxWrongFlags;
}
@Override @Override
public String toString() { public String toString() {
return "BaseLevelDto{" + "id=" + id + ", title='" + title + '\'' + ", order=" + order + return "BaseLevelDto{" + "id=" + id + ", title='" + title + '\'' + ", order=" + order +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment