Skip to content
Snippets Groups Projects
Verified Commit 716866f9 authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Model Submit script API

parent 7022e562
Branches
Tags
2 merge requests!179Release 2.5.0,!177Submit integration
package nl.tudelft.ewi.auta.core.dto;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.annotation.Nullable;
/**
* A DTO for sending Submit feedback.
*/
@SuppressFBWarnings(
value = {"URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"},
justification = "false positive; values are read by GSON serialization"
)
public class SubmitAppFeedbackDto {
/**
* The Submit submission ID.
*/
public long submissionId = -1;
/**
* The Submit script ID for the script that triggered this analysis.
*/
public long scriptId = -1;
/**
* The authorization key.
*/
public String key = "";
/**
* The feedback access level.
*/
public String visibleFor = "NOBODY";
/**
* The feedback itself.
*/
public String textualFeedback = "";
/**
* The associated score.
*
* If this is non-null, this is the last object than can be sent for this submission and key.
*/
@Nullable
public Integer score = null;
}
package nl.tudelft.ewi.auta.core.dto;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Nullable;
/**
* A DTO describing Submit script API requests bodies.
*/
public class SubmitAppSubmissionDto {
/**
* The submitted file.
*/
@Nullable
public MultipartFile file = null;
/**
* The Submit submission ID.
*/
public long submissionId = -1;
/**
* The Submit script ID for the script that called AuTA.
*/
public long scriptId = -1;
/**
* The feedback authorization key.
*/
public String key = "";
/**
* The grading scheme to use.
*/
public String gradeScheme = "";
/**
* The URL to post feedback to.
*/
public String url = "";
}
/**
* Data transfer objects.
*/
@NonnullByDefault
package nl.tudelft.ewi.auta.core.dto;
import nl.tudelft.ewi.auta.common.annotation.NonnullByDefault;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment