Stream Chat Unreal SDK
Loading...
Searching...
No Matches
OwnUser.h
1// Copyright 2026 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Moderation/MutedChannel.h"
7#include "Moderation/MutedUser.h"
8
9#include "OwnUser.generated.h"
10
11struct FOwnUserDto;
12
16USTRUCT(BlueprintType)
17struct STREAMCHAT_API FOwnUser
18{
19 GENERATED_BODY()
20
21
23
24 explicit FOwnUser(const FUserRef&);
26 explicit FOwnUser(const FOwnUserDto&, UUserManager*);
27
28 void Update(const FOwnUser& OwnUser);
29
31 bool HasMutedUser(const FUserRef& TargetUser) const;
32
34 bool HasBlockedUser(const FUserRef& TargetUser) const;
35
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Stream Chat|User")
37 FUserRef User;
38
39 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
40 int32 UnreadCount = 0;
41
43 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
44 int32 TotalUnreadCount = 0;
45
47 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
48 int32 UnreadChannels = 0;
49
51 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
52 TArray<FMutedUser> MutedUsers;
53
55 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
56 TArray<FMutedChannel> MutedChannels;
57
67 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
68 TArray<FString> BlockedUserIds;
69};
#/components/schemas/OwnUser
Definition OwnUserDto.h:17
The currently connected Stream Chat user.
Definition OwnUser.h:18
TArray< FString > BlockedUserIds
Ids of the users that this user has blocked.
Definition UserDto.h:60
A reference to a unique User.
Definition UserRef.h:23