IMPL server-side recover message history API
This commit is contained in:
parent
f2d3c948bf
commit
fdedd75807
2 changed files with 19 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
package me.imsonmia.epqapi.model;
|
||||
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.Id;
|
||||
|
@ -14,6 +15,7 @@ public class Message {
|
|||
private String from;
|
||||
private String to;
|
||||
private String content;
|
||||
private Long timestamp;
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -35,4 +37,10 @@ public class Message {
|
|||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
public Long getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
public void setTimestamp(Long timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue