File tree Expand file tree Collapse file tree 2 files changed +34
-10
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api Expand file tree Collapse file tree 2 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import org .gitlab4j .api .utils .JacksonJson ;
6
6
7
+ import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
8
+
7
9
public class Milestone {
8
10
9
11
private Date createdAt ;
10
12
private String description ;
13
+ @ JsonSerialize (using = JacksonJson .DateOnlySerializer .class )
11
14
private Date startDate ;
15
+ @ JsonSerialize (using = JacksonJson .DateOnlySerializer .class )
12
16
private Date dueDate ;
13
17
private Long id ;
14
18
private Long iid ;
@@ -17,6 +21,8 @@ public class Milestone {
17
21
private String state ;
18
22
private String title ;
19
23
private Date updatedAt ;
24
+ private Boolean expired ;
25
+ private String webUrl ;
20
26
21
27
public Date getCreatedAt () {
22
28
return this .createdAt ;
@@ -106,6 +112,22 @@ public void setUpdatedAt(Date updatedAt) {
106
112
this .updatedAt = updatedAt ;
107
113
}
108
114
115
+ public Boolean getExpired () {
116
+ return expired ;
117
+ }
118
+
119
+ public void setExpired (Boolean expired ) {
120
+ this .expired = expired ;
121
+ }
122
+
123
+ public String getWebUrl () {
124
+ return webUrl ;
125
+ }
126
+
127
+ public void setWebUrl (String webUrl ) {
128
+ this .webUrl = webUrl ;
129
+ }
130
+
109
131
@ Override
110
132
public String toString () {
111
133
return (JacksonJson .toJsonString (this ));
Original file line number Diff line number Diff line change 1
1
{
2
- "id" :12 ,
3
- "iid" :3 ,
4
- "project_id" :16 ,
5
- "title" :" 10.0" ,
6
- "description" :" Version" ,
7
- "start_date" :" 2013-11-01T00:00:00Z" ,
8
- "due_date" :" 2013-11-29T00:00:00Z" ,
9
- "state" :" active" ,
10
- "updated_at" :" 2013-10-02T09:24:18Z" ,
11
- "created_at" :" 2013-10-02T09:24:18Z"
2
+ "id" : 12 ,
3
+ "iid" : 3 ,
4
+ "project_id" : 16 ,
5
+ "title" : " 1.0" ,
6
+ "description" : " Version" ,
7
+ "state" : " active" ,
8
+ "created_at" : " 2013-10-02T09:24:18Z" ,
9
+ "updated_at" : " 2013-10-02T09:24:18Z" ,
10
+ "due_date" : " 2013-11-29" ,
11
+ "start_date" : " 2013-11-01" ,
12
+ "expired" : false ,
13
+ "web_url" : " http://gitlab.example.com/my-group/my-project/-/milestones/3"
12
14
}
You can’t perform that action at this time.
0 commit comments