Stream Chat Unreal SDK
Loading...
Searching...
No Matches
Reaction.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "User/UserRef.h"
7
8#include "Reaction.generated.h"
9
10struct FReactionDto;
11
16USTRUCT(BlueprintType)
17struct STREAMCHAT_API FReaction
18{
19 GENERATED_BODY()
20
21 FReaction();
22 explicit FReaction(const FReactionDto&, UUserManager*);
23 explicit FReaction(const FName& Type, const FUserRef&, const FString& MessageId, int32 Score = 1);
24
26 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Reaction")
27 FName Type;
28
30 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Reaction")
31 int32 Score = 1;
32
34 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Reaction")
36
38 FString MessageId;
39
41 FDateTime CreatedAt = FDateTime::UtcNow();
42
44 FDateTime UpdatedAt = FDateTime::UtcNow();
45};
@ Type
Type of the message.
#/components/schemas/Reaction Represents user reaction to a message
Definition: ReactionDto.h:17
int32 Score
Reaction score. If not specified reaction has score of 1.
Definition: ReactionDto.h:30
FDateTime CreatedAt
Date/time of creation.
Definition: ReactionDto.h:22
FString MessageId
ID of a message user reacted to.
Definition: ReactionDto.h:26
FDateTime UpdatedAt
Date/time of the last update.
Definition: ReactionDto.h:38
An individual reaction to a message.
Definition: Reaction.h:18
A reference to a unique User.
Definition: UserRef.h:23