GetOneToOneConversationUseCase

class GetOneToOneConversationUseCase(conversationRepository: ConversationRepository, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl)

Operation that returns Conversation data for the one-to-one conversation with specific UserId.

Return

Result.Success with Conversation in case of success, or Result.Failure if something went wrong - can't get data from local DB.

Parameters

otherUserId

UserId private conversation with which we are interested in.

Constructors

Link copied to clipboard
internal constructor(conversationRepository: ConversationRepository, dispatchers: <Error class: unknown class> = KaliumDispatcherImpl)

Types

Link copied to clipboard
sealed class Result

Functions

Link copied to clipboard
suspend operator fun invoke(otherUserId: <Error class: unknown class>): <Error class: unknown class><GetOneToOneConversationUseCase.Result>