Interface RepositoryFactory
-
- All Implemented Interfaces:
public interface RepositoryFactoryFactory that creates all repositories of SDK.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRepositoryFactory.ProviderInterface to delegate creation of RepositoryFactory.
-
Method Summary
Modifier and Type Method Description abstract UserRepositorycreateUserRepository()Creates UserRepository abstract ChannelConfigRepositorycreateChannelConfigRepository()Creates ChannelConfigRepository abstract ChannelRepositorycreateChannelRepository(SuspendFunction1<String, User> getUser, SuspendFunction1<String, Message> getMessage)Creates ChannelRepository abstract QueryChannelsRepositorycreateQueryChannelsRepository()Creates QueryChannelsRepository abstract MessageRepositorycreateMessageRepository(SuspendFunction1<String, User> getUser)Creates MessageRepository abstract ReactionRepositorycreateReactionRepository(SuspendFunction1<String, User> getUser)Creates ReactionRepository abstract SyncStateRepositorycreateSyncStateRepository()Creates SyncStateRepository abstract AttachmentRepositorycreateAttachmentRepository()Creates AttachmentRepository -
-
Method Detail
-
createUserRepository
abstract UserRepository createUserRepository()
Creates UserRepository
-
createChannelConfigRepository
abstract ChannelConfigRepository createChannelConfigRepository()
Creates ChannelConfigRepository
-
createChannelRepository
abstract ChannelRepository createChannelRepository(SuspendFunction1<String, User> getUser, SuspendFunction1<String, Message> getMessage)
Creates ChannelRepository
- Parameters:
getUser- function that provides userId.getMessage- function that provides messageId.
-
createQueryChannelsRepository
abstract QueryChannelsRepository createQueryChannelsRepository()
Creates QueryChannelsRepository
-
createMessageRepository
abstract MessageRepository createMessageRepository(SuspendFunction1<String, User> getUser)
Creates MessageRepository
- Parameters:
getUser- function that provides userId.
-
createReactionRepository
abstract ReactionRepository createReactionRepository(SuspendFunction1<String, User> getUser)
Creates ReactionRepository
- Parameters:
getUser- function that provides userId.
-
createSyncStateRepository
abstract SyncStateRepository createSyncStateRepository()
Creates SyncStateRepository
-
createAttachmentRepository
abstract AttachmentRepository createAttachmentRepository()
Creates AttachmentRepository
-
-
-
-