Interface ReactionRepository

  • All Implemented Interfaces:

    
    public interface ReactionRepository
    
                        

    Repository to read and write reactions.

    • Constructor Detail

    • Method Detail

      • insertReaction

         abstract Unit insertReaction(Reaction reaction)

        Inserts a reaction.

        Parameters:
        reaction - Reaction
      • selectReactionById

         abstract Reaction selectReactionById(Integer id)

        Selects reaction with specified id.

        Parameters:
        id - A reaction id to search for.
      • selectReactionsBySyncStatus

         abstract List<Reaction> selectReactionsBySyncStatus(SyncStatus syncStatus)

        Selects all reactions with specific SyncStatus

        Parameters:
        syncStatus - SyncStatus
      • selectUserReactionToMessage

         abstract Reaction selectUserReactionToMessage(String reactionType, String messageId, String userId)

        Selects the reaction of given type to the message if exists.

        Parameters:
        reactionType - The type of reaction.
        messageId - The id of the message to which reaction belongs.
        userId - The id of the user who is the owner of reaction.
      • clear

         abstract Unit clear()

        Clear reactions of this repository.