|
2 | 2 |
|
3 | 3 | import java.util.Date; |
4 | 4 | import java.util.List; |
5 | | -import java.util.Map; |
6 | 5 |
|
7 | 6 | import javax.xml.bind.annotation.XmlAccessType; |
8 | 7 | import javax.xml.bind.annotation.XmlAccessorType; |
9 | 8 |
|
| 9 | +import org.gitlab4j.api.models.Assignee; |
10 | 10 | import org.gitlab4j.api.utils.JacksonJson; |
11 | 11 |
|
12 | 12 | @XmlAccessorType(XmlAccessType.FIELD) |
13 | 13 | public class EventChanges { |
14 | 14 |
|
15 | | - private List<Integer> updatedById; |
16 | | - private List<Date> updatedAt; |
17 | | - private Map<String, List<EventLabel>> labels; |
| 15 | + private ChangeContainer<Date> updatedAt; |
| 16 | + private ChangeContainer<Integer> updatedById; |
| 17 | + private ChangeContainer<Date> dueDate; |
| 18 | + private ChangeContainer<Integer> milestoneId; |
| 19 | + private ChangeContainer<List<EventLabel>> labels; |
| 20 | + private ChangeContainer<List<Assignee>> assignees; |
| 21 | + private ChangeContainer<Integer> totalTimeSpent; |
| 22 | + private ChangeContainer<Boolean> confidential; |
18 | 23 |
|
19 | | - public List<Integer> getUpdatedById() { |
| 24 | + public ChangeContainer<Date> getUpdatedAt() { |
| 25 | + return updatedAt; |
| 26 | + } |
| 27 | + |
| 28 | + public void setUpdatedAt(ChangeContainer<Date> updatedAt) { |
| 29 | + this.updatedAt = updatedAt; |
| 30 | + } |
| 31 | + |
| 32 | + public ChangeContainer<Integer> getUpdatedById() { |
20 | 33 | return updatedById; |
21 | 34 | } |
22 | 35 |
|
23 | | - public void setUpdatedById(List<Integer> updatedById) { |
| 36 | + public void setUpdatedById(ChangeContainer<Integer> updatedById) { |
24 | 37 | this.updatedById = updatedById; |
25 | 38 | } |
26 | 39 |
|
27 | | - public List<Date> getUpdatedAt() { |
28 | | - return updatedAt; |
| 40 | + public ChangeContainer<Date> getDueDate() { |
| 41 | + return dueDate; |
29 | 42 | } |
30 | 43 |
|
31 | | - public void setUpdatedAt(List<Date> updatedAt) { |
32 | | - this.updatedAt = updatedAt; |
| 44 | + public void setDueDate(ChangeContainer<Date> dueDate) { |
| 45 | + this.dueDate = dueDate; |
| 46 | + } |
| 47 | + |
| 48 | + public ChangeContainer<Integer> getMilestoneId() { |
| 49 | + return milestoneId; |
| 50 | + } |
| 51 | + |
| 52 | + public void setMilestoneId(ChangeContainer<Integer> milestoneId) { |
| 53 | + this.milestoneId = milestoneId; |
33 | 54 | } |
34 | 55 |
|
35 | | - public Map<String, List<EventLabel>> getLabels() { |
| 56 | + public ChangeContainer<List<EventLabel>> getLabels() { |
36 | 57 | return labels; |
37 | 58 | } |
38 | 59 |
|
39 | | - public void setLabels(Map<String, List<EventLabel>> labels) { |
| 60 | + public void setLabels(ChangeContainer<List<EventLabel>> labels) { |
40 | 61 | this.labels = labels; |
41 | 62 | } |
42 | 63 |
|
| 64 | + public ChangeContainer<List<Assignee>> getAssignees() { |
| 65 | + return assignees; |
| 66 | + } |
| 67 | + |
| 68 | + public void setAssignees(ChangeContainer<List<Assignee>> assignees) { |
| 69 | + this.assignees = assignees; |
| 70 | + } |
| 71 | + |
| 72 | + public ChangeContainer<Integer> getTotalTimeSpent() { |
| 73 | + return totalTimeSpent; |
| 74 | + } |
| 75 | + |
| 76 | + public void setTotalTimeSpent(ChangeContainer<Integer> totalTimeSpent) { |
| 77 | + this.totalTimeSpent = totalTimeSpent; |
| 78 | + } |
| 79 | + |
| 80 | + public ChangeContainer<Boolean> getConfidential() { |
| 81 | + return confidential; |
| 82 | + } |
| 83 | + |
| 84 | + public void setConfidential(ChangeContainer<Boolean> confidential) { |
| 85 | + this.confidential = confidential; |
| 86 | + } |
| 87 | + |
43 | 88 | @Override |
44 | 89 | public String toString() { |
45 | 90 | return (JacksonJson.toJsonString(this)); |
|
0 commit comments