Stream Chat Unreal SDK
Loading...
Searching...
No Matches
ChatThread.h
1// Copyright 2026 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Message.h"
7#include "Read.h"
8#include "User/UserRef.h"
9
10#include "ChatThread.generated.h"
11
12class UUserManager;
14
24USTRUCT(BlueprintType)
25struct STREAMCHAT_API FChatThread
26{
27 GENERATED_BODY()
28
29
31
33 explicit FChatThread(const FThreadStateResponseDto&, UUserManager*);
34
36 int32 UnreadCount() const;
37
39 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
40 FString ChannelCid;
41
43 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
45
47 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
49
51 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
53
55 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
56 int32 ReplyCount = 0;
57
59 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
61
63 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
65
67 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
69
71 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
73
75 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
76 TArray<FRead> Read;
77
79 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
80 FDateTime LastMessageAt = FDateTime{0};
81
83 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
84 FDateTime CreatedAt = FDateTime{0};
85
87 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
88 FDateTime UpdatedAt = FDateTime{0};
89
91 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
92 FString Title;
93
94 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Thread")
95 FAdditionalFields ExtraData;
96};
@ ReplyCount
The number of replies the message has.
@ ActiveParticipantCount
The number of users still participating in the thread.
@ ParticipantCount
The number of users who have ever replied in the thread.
@ ParentMessageId
The ID of the message which started the thread.
@ ChannelCid
The channel CID for the ban. When this parameter is not provided, both global and channel bans will b...
Represents a Stream Chat thread: a message and the replies hanging off it.
Definition ChatThread.h:26
Represents a Stream Chat message.
Definition Message.h:70
Contains information about the read state (i.e number of unread messages) of a member of a chat chann...
Definition Read.h:19
#/components/schemas/ThreadStateResponse An enriched thread: the parent message plus its latest repli...
Definition ThreadStateResponseDto.h:23
FDateTime UpdatedAt
Date/time of the last update.
Definition ThreadStateResponseDto.h:84
TArray< FThreadParticipantDto > ThreadParticipants
The users participating in this thread.
Definition ThreadStateResponseDto.h:64
TArray< FMessageDto > LatestReplies
The most recent replies in this thread, oldest first.
Definition ThreadStateResponseDto.h:68
FUserObjectDto CreatedBy
The user who started the thread.
Definition ThreadStateResponseDto.h:48
FDateTime CreatedAt
Date/time of creation.
Definition ThreadStateResponseDto.h:80
FString Title
Title of the thread.
Definition ThreadStateResponseDto.h:92
FMessageDto ParentMessage
The message which started the thread.
Definition ThreadStateResponseDto.h:40
TArray< FReadDto > Read
The read state of each participant of this thread.
Definition ThreadStateResponseDto.h:72
FDateTime LastMessageAt
Date/time of the last reply.
Definition ThreadStateResponseDto.h:76
A reference to a unique User.
Definition UserRef.h:23