5#include "Channel/Message.h"
6#include "Components/Image.h"
7#include "Components/TextBlock.h"
8#include "CoreMinimal.h"
9#include "StreamWidget.h"
10#include "TextBubbleWidget.h"
12#include "TimestampWidget.generated.h"
18class STREAMCHATUI_API UTimestampWidget final : public UStreamWidget
24 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
25 void Setup(const
FMessage& InMessage,
bool bInShowUserName,
bool bInShowMessageState);
28 UPROPERTY(meta = (BindWidget))
29 UTextBlock* UserTextBlock;
31 UPROPERTY(meta = (BindWidget))
32 UImage* MessageStateIconImage;
34 UPROPERTY(meta = (BindWidget))
35 UTextBlock* DateTimeTextBlock;
37 UPROPERTY(EditAnywhere, Category = Defaults)
38 UTexture2D* IconClock;
40 UPROPERTY(EditAnywhere, Category = Defaults)
41 UTexture2D* IconCheck;
43 UPROPERTY(EditAnywhere, Category = Defaults)
44 UTexture2D* IconCheckAll;
46 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Setup)
49 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Setup)
52 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Setup)
53 bool bShowMessageState;
56 virtual
void OnSetup() override;
57 virtual
void NativePreConstruct() override;
59 UTexture2D* GetStatusIcon() const;
60 FText GetTimestampText() const;
61 static FText GetDayOfWeek(const FDateTime&);
Represents a Stream Chat message.
Definition: Message.h:66