-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.persistance.repository.AttachmentRepository,io.getstream.chat.android.client.persistance.repository.ChannelConfigRepository,io.getstream.chat.android.client.persistance.repository.ChannelRepository,io.getstream.chat.android.client.persistance.repository.MessageRepository,io.getstream.chat.android.client.persistance.repository.QueryChannelsRepository,io.getstream.chat.android.client.persistance.repository.ReactionRepository,io.getstream.chat.android.client.persistance.repository.SyncStateRepository,io.getstream.chat.android.client.persistance.repository.UserRepository
public final class RepositoryFacade implements UserRepository, ChannelRepository, ReactionRepository, MessageRepository, ChannelConfigRepository, QueryChannelsRepository, SyncStateRepository, AttachmentRepository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRepositoryFacade.Companion
-
Constructor Summary
Constructors Constructor Description RepositoryFacade(UserRepository userRepository, ChannelConfigRepository configsRepository, ChannelRepository channelsRepository, QueryChannelsRepository queryChannelsRepository, MessageRepository messageRepository, ReactionRepository reactionsRepository, SyncStateRepository syncStateRepository, AttachmentRepository attachmentRepository, CoroutineScope scope, Config defaultConfig)
-
Method Summary
Modifier and Type Method Description List<Channel>selectChannels(List<String> channelCIDs, Boolean forceCache)UnitinsertChannel(Channel channel)UnitinsertChannels(Collection<Channel> channels)UnitinsertMessage(Message message, Boolean cache)UnitinsertMessages(List<Message> messages, Boolean cache)UnitdeleteChannelMessagesBefore(String cid, Date hideMessagesBefore)Deletes channel messages before hideMessagesBefore and removes channel from the cache. UnitinsertReaction(Reaction reaction)UnitupdateMembersForChannel(String cid, List<Member> members)-
Methods inherited from class io.getstream.chat.android.offline.repository.builder.internal.RepositoryFacade
cacheChannelConfigs, clearChannelCache, deleteChannel, deleteChannelMessage, evictChannel, insertChannelConfig, insertChannelConfigs, insertCurrentUser, insertQueryChannels, insertSyncState, insertUser, insertUsers, observeAttachmentsForMessage, observeLatestUsers, selectAllCids, selectAllUsers, selectBy, selectChannelByCid, selectChannelCidsBySyncNeeded, selectChannelConfig, selectChannelWithoutMessages, selectChannelsByCids, selectChannelsSyncNeeded, selectMembersForChannel, selectMessage, selectMessageBySyncState, selectMessageIdsBySyncState, selectMessages, selectMessagesForChannel, selectReactionById, selectReactionIdsBySyncStatus, selectReactionsByIds, selectReactionsBySyncStatus, selectSyncState, selectUser, selectUserReactionToMessage, selectUserReactionsToMessage, selectUsers, selectUsersLikeName, setChannelDeletedAt, setHiddenForChannel, setHiddenForChannel, updateLastMessageForChannel, updateReactionsForMessageByDeletedDate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RepositoryFacade
RepositoryFacade(UserRepository userRepository, ChannelConfigRepository configsRepository, ChannelRepository channelsRepository, QueryChannelsRepository queryChannelsRepository, MessageRepository messageRepository, ReactionRepository reactionsRepository, SyncStateRepository syncStateRepository, AttachmentRepository attachmentRepository, CoroutineScope scope, Config defaultConfig)
-
-
Method Detail
-
selectChannels
List<Channel> selectChannels(List<String> channelCIDs, Boolean forceCache)
-
insertChannel
Unit insertChannel(Channel channel)
-
insertChannels
Unit insertChannels(Collection<Channel> channels)
-
insertMessage
Unit insertMessage(Message message, Boolean cache)
-
insertMessages
Unit insertMessages(List<Message> messages, Boolean cache)
-
deleteChannelMessagesBefore
Unit deleteChannelMessagesBefore(String cid, Date hideMessagesBefore)
Deletes channel messages before hideMessagesBefore and removes channel from the cache.
-
insertReaction
Unit insertReaction(Reaction reaction)
-
updateMembersForChannel
Unit updateMembersForChannel(String cid, List<Member> members)
-
-
-
-