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 Details

    • createOrGetDirectConversation

      OutputConversationDto createOrGetDirectConversation(@NonNull UUID user1Id, @NonNull UUID user2Id)
      Create a new direct conversation between two distinct users or return the existing one.
      Parameters:
      user1Id - first participant user ID
      user2Id - second participant user ID
      Returns:
      the created or existing Conversation entity
      Throws:
      IllegalArgumentException - if user IDs are invalid or equal
    • getDirectConversation

      OutputConversationDto getDirectConversation(@NonNull UUID user1Id, @NonNull UUID user2Id)
      Get the direct conversations between two users.
      Parameters:
      user1Id - first participant user ID
      user2Id - second participant user ID
      Returns:
      the found direct conversations