Class ReactionKt

  • All Implemented Interfaces:

    
    public final class ReactionKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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)
      • Methods inherited from class java.lang.Object

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

    • 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.