Package ru.kpekepsalt.ruvik.service
Interface MessageService
-
- All Known Implementing Classes:
MessageServiceImpl
public interface MessageService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Message>findByIdGreaterThan(Long conversationId, Long id)Search for messages with offsetConversationhaveConversation(Long id)Checks if conversation with given id existsvoidsave(Message message)Saves message
-
-
-
Method Detail
-
save
void save(Message message)
Saves message- Parameters:
message- Message data
-
haveConversation
Conversation haveConversation(Long id)
Checks if conversation with given id exists- Parameters:
id- Conversation id- Returns:
- Conversation or null if not exists
-
-