edu.ksu.canvas.model.assignment.Submission Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas-api Show documentation
Show all versions of canvas-api Show documentation
A native Java library to talk to the Canvas REST API
package edu.ksu.canvas.model.assignment;
import edu.ksu.canvas.annotation.CanvasField;
import edu.ksu.canvas.annotation.CanvasObject;
import edu.ksu.canvas.model.BaseCanvasModel;
import java.io.Serializable;
import java.util.Date;
@CanvasObject(postKey = "submission")
public class Submission extends BaseCanvasModel implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
private Integer assignmentId;
private String assignment;
private String course;
private Integer attempt;
private String body;
private String grade;
private Boolean gradeMatchesCurrentSubmission;
private String htmlUrl;
private String previewUrl;
private Double score;
private String submissionComments;
private String submissionType;
private Date submittedAt;
private String url;
private Integer userId;
private Integer gradeId;
private String user;
private Boolean late;
private Boolean assigmentVisible;
private Boolean excused;
private String workflowState;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getAssignmentId() {
return assignmentId;
}
public void setAssignmentId(Integer assignmentId) {
this.assignmentId = assignmentId;
}
public String getAssignment() {
return assignment;
}
public void setAssignment(String assignment) {
this.assignment = assignment;
}
public String getCourse() {
return course;
}
public void setCourse(String course) {
this.course = course;
}
@CanvasField(postKey = "attempt", array = false)
public Integer getAttempt() {
return attempt;
}
public void setAttempt(Integer attempt) {
this.attempt = attempt;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public String getGrade() {
return grade;
}
public void setGrade(String grade) {
this.grade = grade;
}
public Boolean getGradeMatchesCurrentSubmission() {
return gradeMatchesCurrentSubmission;
}
public void setGradeMatchesCurrentSubmission(Boolean gradeMatchesCurrentSubmission) {
this.gradeMatchesCurrentSubmission = gradeMatchesCurrentSubmission;
}
public String getHtmlUrl() {
return htmlUrl;
}
public void setHtmlUrl(String htmlUrl) {
this.htmlUrl = htmlUrl;
}
public String getPreviewUrl() {
return previewUrl;
}
public void setPreviewUrl(String previewUrl) {
this.previewUrl = previewUrl;
}
public Double getScore() {
return score;
}
public void setScore(Double score) {
this.score = score;
}
public String getSubmissionComments() {
return submissionComments;
}
public void setSubmissionComments(String submissionComments) {
this.submissionComments = submissionComments;
}
public String getSubmissionType() {
return submissionType;
}
public void setSubmissionType(String submissionType) {
this.submissionType = submissionType;
}
public Date getSubmittedAt() {
return submittedAt;
}
public void setSubmittedAt(Date submittedAt) {
this.submittedAt = submittedAt;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getGradeId() {
return gradeId;
}
public void setGradeId(Integer gradeId) {
this.gradeId = gradeId;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public Boolean getLate() {
return late;
}
public void setLate(Boolean late) {
this.late = late;
}
public Boolean getAssigmentVisible() {
return assigmentVisible;
}
public void setAssigmentVisible(Boolean assigmentVisible) {
this.assigmentVisible = assigmentVisible;
}
public Boolean getExcused() {
return excused;
}
public void setExcused(Boolean excused) {
this.excused = excused;
}
public String getWorkflowState() {
return workflowState;
}
public void setWorkflowState(String workflowState) {
this.workflowState = workflowState;
}
}