Package 

Class RepositoryFacade

  • All Implemented Interfaces:
    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.ThreadsRepository , io.getstream.chat.android.client.persistance.repository.UserRepository

    
    public final class RepositoryFacade
     implements UserRepository, ChannelRepository, ReactionRepository, MessageRepository, ChannelConfigRepository, QueryChannelsRepository, ThreadsRepository, SyncStateRepository
                        
    • Method Summary

      Modifier and Type Method Description
      List<Channel> selectChannels(List<String> channelCIDs) Select channels by full channel IDs Channel.cid
      final List<Channel> selectChannels(List<String> channelIds, AnyChannelPaginationRequest pagination)
      final Channel enrichChannel(Channel $self, Map<String, List<Message>> messageMap, Config defaultConfig)
      Unit insertChannel(Channel channel) Inserts a Channel
      Unit insertChannels(Collection<Channel> channels) Inserts many Channels.
      Unit insertMessage(Message message) Inserts a messages.
      Unit insertMessages(List<Message> messages) Inserts many messages.
      Unit deleteChannelMessagesBefore(String cid, Date hideMessagesBefore) Deletes channel messages before hideMessagesBefore and removes channel from the cache.
      Unit deleteChannelMessage(Message message) Deletes a Message from a Channel.messages.
      final Unit markMessageAsDeleted(Message message)
      Unit insertReaction(Reaction reaction) Inserts a reaction.
      Unit updateMembersForChannel(String cid, List<Member> members) Updates the members of a Channel
      final Unit storeStateForChannels(Collection<Channel> channels)
      Unit deleteChannel(String cid) Deletes a Channel by the cid.
      Unit setHiddenForChannel(String cid, Boolean hidden, Date hideMessagesBefore) Sets the Channel.hidden for a channel.
      Unit setHiddenForChannel(String cid, Boolean hidden) Sets the Channel.hidden for a channel.
      Unit insertThreads(List<Thread> threads) Inserts the given list of Thread.
      final Unit storeStateForChannel(Channel channel)
      Unit clear() Clear users of this repository.
      • Methods inherited from class io.getstream.chat.android.client.persistance.repository.RepositoryFacade

        cacheChannelConfigs, deleteAllChannelUserMessages, deleteChannelMessages, deleteChannelThreads, deleteDraftMessage, deleteDraftMessage, deleteMessages, deletePoll, deleteReaction, evictChannel, evictMessage, evictMessages, insertChannelConfig, insertChannelConfigs, insertCurrentUser, insertDraftMessage, insertQueryChannels, insertSyncState, insertThreadOrder, insertUser, insertUsers, observeLatestUsers, selectAllChannelUserMessages, selectAllCids, selectAllUserMessages, selectBy, selectChannel, selectChannelCidsBySyncNeeded, selectChannelConfig, selectChannelsSyncNeeded, selectDraftMessageByParentId, selectDraftMessages, selectDraftMessagesByCid, selectLocalOnlyMessagesForChannel, selectMembersForChannel, selectMessage, selectMessageBySyncState, selectMessageIdsBySyncState, selectMessages, selectMessagesForChannel, selectMessagesForThread, selectMessagesWithPoll, selectReactionById, selectReactionIdsBySyncStatus, selectReactionsByIds, selectReactionsBySyncStatus, selectSyncState, selectThread, selectThreadOrder, selectThreads, selectUser, selectUserReactionToMessage, selectUserReactionsToMessage, selectUsers, setChannelDeletedAt, updateChannelMessage, updateChannelUserMessagesMember, updateLastMessageForChannel, updateReactionsForMessageByDeletedDate, upsertChannelReads, upsertMessageInThread, upsertMessagesInThread
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait