Files
Bonsai-api/src/main/java/fr/bonsai/api/domain/model/Issue.java
T
2026-05-24 09:27:43 +02:00

55 lines
2.0 KiB
Java

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; }
}