UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
ServerResponseChatMessageChunk.h
Go to the documentation of this file.
1// Copyright(c) 2024 grrimgrriefer & DZnnah, see LICENSE for details.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
14{
15#pragma region public API
16public:
29 explicit ServerResponseChatMessageChunk(FGuid messageId,
30 FGuid senderId,
31 FGuid sessionId,
32 int startIndex,
33 int endIndex,
34 FStringView messageText,
35 FStringView audioUrlPath,
36 bool isNarration) :
38 SENDER_ID(senderId),
39 START_INDEX(startIndex),
40 END_INDEX(endIndex),
41 MESSAGE_TEXT(messageText),
42 AUDIO_URL_PATH(audioUrlPath),
43 IS_NARRATION(isNarration)
44 {}
45#pragma endregion
46
47#pragma region data
48public:
50 const FGuid SENDER_ID;
52 const int START_INDEX;
54 const int END_INDEX;
56 const FString MESSAGE_TEXT;
58 const FString AUDIO_URL_PATH;
60 const bool IS_NARRATION;
61#pragma endregion
62};
ChatMessageType
Contains the possible states of the message that is currently being generated by Voxta.
Definition ServerResponseChatMessageBase.h:20
@ MessageChunk
Definition ServerResponseChatMessageBase.h:22
ServerResponseChatMessageBase(ChatMessageType messageType, FGuid messageId, FGuid sessionId)
Construct a base chat message response.
Definition ServerResponseChatMessageBase.h:37
const int START_INDEX
The start index of this chunk in the message.
Definition ServerResponseChatMessageChunk.h:52
ServerResponseChatMessageChunk(FGuid messageId, FGuid senderId, FGuid sessionId, int startIndex, int endIndex, FStringView messageText, FStringView audioUrlPath, bool isNarration)
Construct a chat message chunk response.
Definition ServerResponseChatMessageChunk.h:29
const FString MESSAGE_TEXT
The text content of this chunk.
Definition ServerResponseChatMessageChunk.h:56
const FString AUDIO_URL_PATH
The audio URL path for this chunk.
Definition ServerResponseChatMessageChunk.h:58
const FGuid SENDER_ID
The ID of the sender.
Definition ServerResponseChatMessageChunk.h:50
const int END_INDEX
The end index of this chunk in the message.
Definition ServerResponseChatMessageChunk.h:54
const bool IS_NARRATION
Whether this chunk is narration.
Definition ServerResponseChatMessageChunk.h:60