edu.ksu.canvas.model.Progress 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;
import edu.ksu.canvas.annotation.CanvasObject;
import java.io.Serializable;
import java.util.Date;
/**
* API for querying the progress of asynchronous API operations.
* id: the ID of the Progress object
* contextId the context owning the job.
* userId the id of the user who started the job
* tag the type of operation
* completion percent completed
* workflowState the state of the job one of 'queued', 'running', 'completed', 'failed'
* createdAt the time the job was created
* updatedAt the time the job was last updated
* message optional details about the job
* url url where a progress update can be retrieved
*/
@CanvasObject(postKey = "progress")
public class Progress implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
private Integer contextId;
private String contextType;
private Integer userId;
private String tag;
private Integer completion;
private String workflowState;
private Date createdAt;
private Date updatedAt;
private String message;
private String url;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getContextId() {
return contextId;
}
public void setContextId(Integer contextId) {
this.contextId = contextId;
}
public String getContextType() {
return contextType;
}
public void setContextType(String contextType) {
this.contextType = contextType;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public Integer getCompletion() {
return completion;
}
public void setCompletion(Integer completion) {
this.completion = completion;
}
public String getWorkflowState() {
return workflowState;
}
public void setWorkflowState(String workflowState) {
this.workflowState = workflowState;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}