RepositoryFactory
interface 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
Creates ChannelConfigRepository
Link copied to clipboard
abstract fun createChannelRepository(getUser: suspend (userId: String) -> User, getMessage: suspend (messageId: String) -> Message?): ChannelRepository
Creates ChannelRepository
Link copied to clipboard
Creates MessageRepository
Link copied to clipboard
Creates QueryChannelsRepository
Link copied to clipboard
abstract fun createReactionRepository(getUser: suspend (userId: String) -> User): ReactionRepository
Creates ReactionRepository
Link copied to clipboard
Creates SyncStateRepository
Link copied to clipboard
abstract fun createThreadsRepository(getUser: suspend (userId: String) -> User, getMessage: suspend (messageId: String) -> Message?, getChannel: suspend (cid: String) -> Channel?): ThreadsRepository
Creates ThreadsRepository.
Link copied to clipboard
Creates UserRepository