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

Add two new task attributes also to TaskCopyDTO

parent 44ba8c3f
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,13 @@ public class TaskCopyDTO { ...@@ -29,6 +29,13 @@ public class TaskCopyDTO {
@PositiveOrZero(message = "Limit of the number of provided incorrect answers must not be a negative number") @PositiveOrZero(message = "Limit of the number of provided incorrect answers must not be a negative number")
private Integer incorrectAnswerLimit; private Integer incorrectAnswerLimit;
@ApiModelProperty(value = "It defines whether the sandbox can be modified", example = "true")
private boolean isSandboxModified;
@ApiModelProperty(value = "It defines the expected duration of sandbox change defined in seconds", example = "15")
@PositiveOrZero(message = "Estimated duration of sandbox change must not be a negative number")
private int sandboxChangeExpectedDuration;
public String getTitle() { public String getTitle() {
return title; return title;
} }
...@@ -69,6 +76,22 @@ public class TaskCopyDTO { ...@@ -69,6 +76,22 @@ public class TaskCopyDTO {
this.incorrectAnswerLimit = incorrectAnswerLimit; this.incorrectAnswerLimit = incorrectAnswerLimit;
} }
public boolean isSandboxModified() {
return isSandboxModified;
}
public void setSandboxModified(boolean sandboxModified) {
isSandboxModified = sandboxModified;
}
public int getSandboxChangeExpectedDuration() {
return sandboxChangeExpectedDuration;
}
public void setSandboxChangeExpectedDuration(int sandboxChangeExpectedDuration) {
this.sandboxChangeExpectedDuration = sandboxChangeExpectedDuration;
}
@Override @Override
public String toString() { public String toString() {
return "TaskCopyDTO{" + return "TaskCopyDTO{" +
...@@ -77,6 +100,8 @@ public class TaskCopyDTO { ...@@ -77,6 +100,8 @@ public class TaskCopyDTO {
", answer='" + answer + '\'' + ", answer='" + answer + '\'' +
", solution='" + solution + '\'' + ", solution='" + solution + '\'' +
", incorrectAnswerLimit=" + incorrectAnswerLimit + ", incorrectAnswerLimit=" + incorrectAnswerLimit +
", isSandboxModified=" + isSandboxModified +
", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration +
'}'; '}';
} }
} }
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