first successful ws impl
This commit is contained in:
parent
74700bfdc2
commit
4329c5067f
1 changed files with 175 additions and 154 deletions
|
|
@ -1,11 +1,10 @@
|
|||
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());
|
||||
return new ChatMessage(r.findByUserName(s.getFrom()).getId(), s.getContent());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue