Interface DirectConversationService
- All Known Implementing Classes:
DirectConversationServiceImpl
public interface DirectConversationService
Service contract for managing direct conversations.
Each method is documented to improve generated JavaDoc and maintainability.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrGetDirectConversation(UUID user1Id, UUID user2Id) Create a new direct conversation between two distinct users or return the existing one.getDirectConversation(UUID user1Id, UUID user2Id) Get the direct conversations between two users.
-
Method Details
-
createOrGetDirectConversation
Create a new direct conversation between two distinct users or return the existing one.- Parameters:
user1Id- first participant user IDuser2Id- second participant user ID- Returns:
- the created or existing Conversation entity
- Throws:
IllegalArgumentException- if user IDs are invalid or equal
-
getDirectConversation
Get the direct conversations between two users.- Parameters:
user1Id- first participant user IDuser2Id- second participant user ID- Returns:
- the found direct conversations
-