blob: 59c0a2dc689fa5d91b957c57aa287d2452ffe229 (
plain) (
blame)
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
|
package com.juick;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.Instant;
public class Chat extends User {
private Instant lastMessageTimestamp;
private String lastMessageText;
public Instant getLastMessageTimestamp() {
return lastMessageTimestamp;
}
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "UTC")
public void setLastMessageTimestamp(Instant lastMessageTimestamp) {
this.lastMessageTimestamp = lastMessageTimestamp;
}
public String getLastMessageText() {
return lastMessageText;
}
public void setLastMessageText(String lastMessageText) {
this.lastMessageText = lastMessageText;
}
}
|