Class ReactionKt
-
- All Implemented Interfaces:
public final 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 ReactionupdateSyncStatus(Reaction $self, Result<?> result)Updates the reaction's sync status based on result. final static ReactionenrichWithDataBeforeSending(Reaction $self, User currentUser, Boolean isOnline, Boolean enforceUnique)-
-
Method Detail
-
updateByUsers
final static Collection<Reaction> updateByUsers(Collection<Reaction> $self, Map<String, User> userMap)
Updates collection of reactions with more recent data of users.
-
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.
-
enrichWithDataBeforeSending
final static Reaction enrichWithDataBeforeSending(Reaction $self, User currentUser, Boolean isOnline, Boolean enforceUnique)
-
-
-
-