Package 

Class ReactionKt

    • Method Summary

      Modifier and Type Method Description
      final static Collection<Reaction> updateByUsers(Collection<Reaction> $self, Map<String, User> userMap) Updates collection of reactions with more recent data of users.
      final static Collection<Reaction> mergeReactions(Collection<Reaction> recentReactions, Collection<Reaction> cachedReactions) Merges two collections of reactions by their Reaction.type.
      final static Reaction updateSyncStatus(Reaction $self, Result<?> result) Updates the reaction's sync status based on result.
      final static Reaction enrichWithDataBeforeSending(Reaction $self, User currentUser, Boolean isOnline, Boolean enforceUnique, Boolean skipPush)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mergeReactions

         final static Collection<Reaction> mergeReactions(Collection<Reaction> recentReactions, Collection<Reaction> cachedReactions)

        Merges two collections of reactions by their Reaction.type.

        Parameters:
        recentReactions - More recent collection of reactions.
        cachedReactions - More outdated collection of reactions.
      • updateSyncStatus

         final static Reaction updateSyncStatus(Reaction $self, Result<?> result)

        Updates the reaction's sync status based on result.

        Parameters:
        result - The API call result.