5#include "CoreMinimal.h"
8#include "Subsystems/EngineSubsystem.h"
10#include "User/UserRef.h"
12#include "UserManager.generated.h"
18class STREAMCHAT_API UUserManager final : public UEngineSubsystem
23 virtual
void Initialize(FSubsystemCollectionBase& Collection) override;
24 static UUserManager* Get();
34 FUserUpdatedMultiDelegate& OnUserUpdated(const
FUserRef&);
47 void SetUserBlocked(const FString&
UserId,
bool bBlocked);
49 void ResetCurrentUser();
50 bool HasCurrentUser() const;
51 UFUNCTION(BlueprintPure, Category = "Stream|Users")
52 const
FOwnUser& GetCurrentUser() const;
56 TMap<FString,
FUser> Users;
57 TMap<FString, FUserUpdatedMultiDelegate> UserUpdatedDelegates;
@ UserId
The user ID of the user that sent the message.
#/components/schemas/OwnUser
Definition OwnUserDto.h:17
The currently connected Stream Chat user.
Definition OwnUser.h:18
Common fields for users.
Definition UserDto.h:16
TArray< FString > BlockedUserIds
Ids of the users that this user has blocked.
Definition UserDto.h:60
A Stream Chat user.
Definition User.h:20
#/components/schemas/UserObject Used in both requests and responses
Definition UserObjectDto.h:17
A reference to a unique User.
Definition UserRef.h:23