File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
gitlab4j-models/src/main/java/org/gitlab4j/api Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import com .fasterxml .jackson .annotation .JsonProperty ;
10
10
import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
11
+ import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
11
12
12
13
public class User extends AbstractUser <User > {
13
14
private static final long serialVersionUID = 1L ;
@@ -54,7 +55,7 @@ public class User extends AbstractUser<User> {
54
55
private Boolean isAdmin ;
55
56
56
57
@ JsonProperty ("last_activity_on" )
57
- @ JsonDeserialize (using = MultiDateFormatDeserializer .class )
58
+ @ JsonSerialize (using = JacksonJson . DateOnlySerializer .class )
58
59
private Date lastActivityOn ;
59
60
60
61
@ JsonProperty ("last_sign_in_at" )
Original file line number Diff line number Diff line change 7
7
8
8
import org .gitlab4j .api .models .Assignee ;
9
9
import org .gitlab4j .models .utils .JacksonJson ;
10
+ import org .gitlab4j .models .utils .MultiDateFormatDeserializer ;
10
11
11
12
import com .fasterxml .jackson .annotation .JsonAnyGetter ;
12
13
import com .fasterxml .jackson .annotation .JsonAnySetter ;
13
14
import com .fasterxml .jackson .annotation .JsonProperty ;
15
+ import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
14
16
15
17
public abstract class EventChanges {
16
18
17
19
@ JsonProperty ("author_id" )
18
20
private ChangeContainer <Long > authorId ;
19
21
20
22
@ JsonProperty ("created_at" )
23
+ @ JsonDeserialize (using = MultiDateFormatDeserializer .class )
21
24
private ChangeContainer <Date > createdAt ;
22
25
23
26
@ JsonProperty ("updated_at" )
27
+ @ JsonDeserialize (using = MultiDateFormatDeserializer .class )
24
28
private ChangeContainer <Date > updatedAt ;
25
29
26
30
@ JsonProperty ("updated_by_id" )
Original file line number Diff line number Diff line change 2
2
3
3
import java .util .Date ;
4
4
5
+ import org .gitlab4j .models .utils .JacksonJson ;
6
+
5
7
import com .fasterxml .jackson .annotation .JsonProperty ;
8
+ import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
6
9
7
10
public class IssueChanges extends EventChanges {
8
11
9
12
@ JsonProperty ("due_date" )
13
+ @ JsonSerialize (using = JacksonJson .DateOnlySerializer .class )
10
14
private ChangeContainer <Date > dueDate ;
11
15
12
16
@ JsonProperty ("confidential" )
Original file line number Diff line number Diff line change 2
2
3
3
import java .util .Date ;
4
4
5
+ import org .gitlab4j .models .utils .MultiDateFormatDeserializer ;
6
+
5
7
import com .fasterxml .jackson .annotation .JsonProperty ;
8
+ import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
6
9
7
10
public class WorkItemChanges extends EventChanges {
8
11
@ JsonProperty ("health_status" )
9
12
private ChangeContainer <String > healthStatus ;
10
13
11
14
@ JsonProperty ("last_edited_at" )
15
+ @ JsonDeserialize (using = MultiDateFormatDeserializer .class )
12
16
private ChangeContainer <Date > lastEditedAt ;
13
17
14
18
public ChangeContainer <String > getHealthStatus () {
You can’t perform that action at this time.
0 commit comments