RepositoryFactory

Factory that creates all repositories of SDK.

Types

Link copied to clipboard
interface Provider

Interface to delegate creation of RepositoryFactory.

Functions

Link copied to clipboard
abstract fun createChannelRepository(getUser: suspend (userId: String) -> User, getMessage: suspend (messageId: String) -> Message?): ChannelRepository
Link copied to clipboard
abstract fun createMessageRepository(getUser: suspend (userId: String) -> User): MessageRepository
Link copied to clipboard
abstract fun createReactionRepository(getUser: suspend (userId: String) -> User): ReactionRepository
Link copied to clipboard
abstract fun createThreadsRepository(getUser: suspend (userId: String) -> User, getMessage: suspend (messageId: String) -> Message?, getChannel: suspend (cid: String) -> Channel?): ThreadsRepository
Link copied to clipboard