File tree Expand file tree Collapse file tree 4 files changed +40
-16
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api Expand file tree Collapse file tree 4 files changed +40
-16
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 4
4
"group_id" :14 ,
5
5
"title" :" 10.0" ,
6
6
"description" :" Version" ,
7
- "start_date" :" 2013-11-01T00:00:00Z " ,
8
- "due_date" :" 2013-11-29T00:00:00Z " ,
7
+ "start_date" :" 2013-11-01 " ,
8
+ "due_date" :" 2013-11-29 " ,
9
9
"state" :" active" ,
10
10
"updated_at" :" 2013-10-02T09:24:18Z" ,
11
11
"created_at" :" 2013-10-02T09:24:18Z"
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
}
Original file line number Diff line number Diff line change 40
40
"state" :" closed" ,
41
41
"created_at" :" 2019-07-12T19:45:44.256Z" ,
42
42
"updated_at" :" 2019-07-12T19:45:44.256Z" ,
43
- "due_date" :" 2019-08-16T11:00:00.256Z " ,
44
- "start_date" :" 2019-07-30T12:00:00.256Z "
43
+ "due_date" :" 2019-08-16 " ,
44
+ "start_date" :" 2019-07-30 "
45
45
},
46
46
{
47
47
"id" :52 ,
52
52
"state" :" closed" ,
53
53
"created_at" :" 2019-07-16T14:00:12.256Z" ,
54
54
"updated_at" :" 2019-07-16T14:00:12.256Z" ,
55
- "due_date" :" 2019-08-16T11:00:00.256Z " ,
56
- "start_date" :" 2019-07-30T12:00:00.256Z "
55
+ "due_date" :" 2019-08-16 " ,
56
+ "start_date" :" 2019-07-30 "
57
57
}
58
58
],
59
59
"commit_path" :" /root/awesome-app/commit/588440f66559714280628a4f9799f0c4eb880a4a" ,
You can’t perform that action at this time.
0 commit comments