api issue
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
package fr.bonsai.api.domain.model;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
public class Issue {
|
||||
|
||||
private final Long id;
|
||||
private final IssueType type;
|
||||
private final String assignee;
|
||||
private final String epic;
|
||||
private final String name;
|
||||
private final LocalDate dueDate;
|
||||
private final String description;
|
||||
private final Double estimatedTime;
|
||||
private final List<Long> dependsOnIds;
|
||||
private final List<Comment> comments;
|
||||
private final Priority priority;
|
||||
private final IssueStatus status;
|
||||
private final int progress;
|
||||
|
||||
public Issue(Long id, IssueType type, String assignee, String epic, String name,
|
||||
LocalDate dueDate, String description, Double estimatedTime,
|
||||
List<Long> dependsOnIds, List<Comment> comments,
|
||||
Priority priority, IssueStatus status, int progress) {
|
||||
this.id = id;
|
||||
this.type = type;
|
||||
this.assignee = assignee;
|
||||
this.epic = epic;
|
||||
this.name = name;
|
||||
this.dueDate = dueDate;
|
||||
this.description = description;
|
||||
this.estimatedTime = estimatedTime;
|
||||
this.dependsOnIds = dependsOnIds;
|
||||
this.comments = comments;
|
||||
this.priority = priority;
|
||||
this.status = status;
|
||||
this.progress = progress;
|
||||
}
|
||||
|
||||
public Long getId() { return id; }
|
||||
public IssueType getType() { return type; }
|
||||
public String getAssignee() { return assignee; }
|
||||
public String getEpic() { return epic; }
|
||||
public String getName() { return name; }
|
||||
public LocalDate getDueDate() { return dueDate; }
|
||||
public String getDescription() { return description; }
|
||||
public Double getEstimatedTime() { return estimatedTime; }
|
||||
public List<Long> getDependsOnIds() { return dependsOnIds; }
|
||||
public List<Comment> getComments() { return comments; }
|
||||
public Priority getPriority() { return priority; }
|
||||
public IssueStatus getStatus() { return status; }
|
||||
public int getProgress() { return progress; }
|
||||
}
|
||||
Reference in New Issue
Block a user