initial commit

This commit is contained in:
Zhongheng Liu 2023-12-21 12:32:56 +02:00
commit fe8af0fedf
No known key found for this signature in database

View file

@ -0,0 +1,11 @@
package me.imsonmia.epqapi.model;
import me.imsonmia.epqapi.messaging.Message;
import me.imsonmia.epqapi.repository.UserRepository;
public class ChatConvert {
private UserRepository r;
public ChatMessage fromMessage(Message s) {
return new ChatMessage(r.findByFirstName(s.getFrom()).getId(), s.getContent());
}
}