blob: 07b5669a1540e25061c3da558042d7e7945aaf24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
package com.intellij.tasks.redmine.model;
import com.google.gson.annotations.SerializedName;
import com.intellij.tasks.impl.gson.Mandatory;
import com.intellij.tasks.impl.gson.RestModel;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Date;
/**
* @author Mikhail Golubev
*/
@RestModel
@SuppressWarnings("UnusedDeclaration")
public class RedmineIssue {
private int id;
@Mandatory
private IssueStatus status;
@Mandatory
private String subject;
@Mandatory
private String description;
@SerializedName("done_ratio")
private int doneRatio;
@Mandatory
@SerializedName("created_on")
private Date created;
@Mandatory
@SerializedName("updated_on")
private Date updated;
private RedmineProject project;
public int getId() {
return id;
}
public IssueStatus getStatus() {
return status;
}
@NotNull
public String getSubject() {
return subject;
}
@NotNull
public String getDescription() {
return description;
}
public int getDoneRatio() {
return doneRatio;
}
@NotNull
public Date getCreated() {
return created;
}
@NotNull
public Date getUpdated() {
return updated;
}
@Nullable
public RedmineProject getProject() {
return project;
}
@RestModel
public static class IssueStatus {
private int id;
@Mandatory
private String name;
public int getId() {
return id;
}
@NotNull
public String getName() {
return name;
}
}
}
|