Stream Chat Unreal SDK
Loading...
Searching...
No Matches
OwnUser.h
1// Copyright 2022 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
33 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Stream Chat|User")
34 FUserRef User;
35
36 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
37 int32 UnreadCount = 0;
38
40 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
41 int32 TotalUnreadCount = 0;
42
44 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
45 int32 UnreadChannels = 0;
46
48 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
49 TArray<FMutedUser> MutedUsers;
50
52 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User")
53 TArray<FMutedChannel> MutedChannels;
54};
#/components/schemas/OwnUser
Definition: OwnUserDto.h:17
The currently connected Stream Chat user.
Definition: OwnUser.h:18
A reference to a unique User.
Definition: UserRef.h:23