From b63aaaf2c2c32e413894065ff58709ed9554b8af Mon Sep 17 00:00:00 2001 From: Jan Tymel <410388@mail.muni.cz> Date: Thu, 11 Feb 2021 22:07:26 +0100 Subject: [PATCH] Add two new task attributes also to TaskCopyDTO --- .../adaptive/dto/training/TaskCopyDTO.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/main/java/cz/muni/ics/kypo/training/adaptive/dto/training/TaskCopyDTO.java b/src/main/java/cz/muni/ics/kypo/training/adaptive/dto/training/TaskCopyDTO.java index 942accf9..cab1f08e 100644 --- a/src/main/java/cz/muni/ics/kypo/training/adaptive/dto/training/TaskCopyDTO.java +++ b/src/main/java/cz/muni/ics/kypo/training/adaptive/dto/training/TaskCopyDTO.java @@ -29,6 +29,13 @@ public class TaskCopyDTO { @PositiveOrZero(message = "Limit of the number of provided incorrect answers must not be a negative number") 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() { return title; } @@ -69,6 +76,22 @@ public class TaskCopyDTO { 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 public String toString() { return "TaskCopyDTO{" + @@ -77,6 +100,8 @@ public class TaskCopyDTO { ", answer='" + answer + '\'' + ", solution='" + solution + '\'' + ", incorrectAnswerLimit=" + incorrectAnswerLimit + + ", isSandboxModified=" + isSandboxModified + + ", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration + '}'; } } -- GitLab