IMPL server-side recover message history API

This commit is contained in:
Zhongheng Liu 2024-01-02 17:44:24 +02:00
commit fdedd75807
No known key found for this signature in database
2 changed files with 19 additions and 3 deletions

View file

@ -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;
}
}