-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGetMessageHistory.h
44 lines (31 loc) · 1.06 KB
/
GetMessageHistory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2022 Charisma Entertainment Ltd
#pragma once
#include "CharismaAPI.h"
#include "CoreMinimal.h"
#include "Kismet/BlueprintAsyncActionBase.h"
#include "GetMessageHistory.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(
FGetMessageHistoryDelegate, FCharismaMessageHistoryResponse, MessageHistory, FString, Error);
UCLASS()
class CHARISMAMODULE_API UGetMessageHistory : public UBlueprintAsyncActionBase
{
GENERATED_UCLASS_BODY()
public:
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", WorldContext = "WorldContextObject"),
Category = "Charisma API")
static UGetMessageHistory* GetMessageHistory(
UObject* WorldContextObject, const FString Token, const FString ConversationUuid, const FString EventId);
virtual void Activate() override;
UPROPERTY()
FString Token;
UPROPERTY()
FString ConversationUuid;
UPROPERTY()
FString MinEventId;
private:
UPROPERTY(BlueprintAssignable)
FGetMessageHistoryDelegate Success;
UPROPERTY(BlueprintAssignable)
FGetMessageHistoryDelegate Failure;
UObject* WorldContextObject;
};