Stream Chat Unreal SDK
Loading...
Searching...
No Matches
FReactions Struct Reference

Encapsulates a collection of reactions for a message. More...

#include <Reactions.h>

Public Member Functions

void AddReaction (const FReaction &, bool bUpdateCounts)
 Add a new reaction to the collection.
 
void RemoveReactionWhere (TFunctionRef< bool(const FReaction &)> Predicate)
 Remove a reaction according to the provided predicate.
 
bool IsEmpty () const
 Are there any reactions here?
 
int LocalCount () const
 The total number of reactions locally.
 
bool HasAllDataLocally () const
 
TOptional< FReactionGetOwnReaction (const FName &ReactionType, const UUserManager *) const
 Get the reaction created by the current user, if it exists.
 
const TMap< FName, FReactionGroup > & GetReactionGroups () const
 Get all reactions of this message, grouped by their type.
 
TMap< FName, int32 > GetScores () const
 Get the scores of each of the reaction types in this collection.
 

Static Public Member Functions

static FReactions CollectReactions (UUserManager *UserManager, const TMap< FName, int32 > &ReactionCounts, const TMap< FName, int32 > &ReactionScores, const TArray< FReactionDto > &LatestReactions, const TArray< FReactionDto > &OwnReactions)
 Create a collection of reactions using the data in the format received from the server.
 

Detailed Description

Encapsulates a collection of reactions for a message.


The documentation for this struct was generated from the following files: