UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
ServerResponseChatMessageBase.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
15{
16#pragma region helper classes
17public:
26#pragma endregion
27
28#pragma region public API
29public:
38 ChatMessageType messageType,
39 FGuid messageId,
40 FGuid sessionId) : ServerResponseBase(ServerResponseType::ChatMessage),
41 MESSAGE_TYPE(messageType),
42 MESSAGE_ID(messageId),
43 SESSION_ID(sessionId)
44 {}
45#pragma endregion
46
47#pragma region data
48public:
52 const FGuid MESSAGE_ID;
54 const FGuid SESSION_ID;
55#pragma endregion
56};
ServerResponseType
ServerResponseType Contains the possible response types that can be reported by the VoxtaApiReponseHa...
Definition ServerResponseType.h:16
ServerResponseBase(ServerResponseType responseType)
Definition ServerResponseBase.h:20
ChatMessageType
Contains the possible states of the message that is currently being generated by Voxta.
Definition ServerResponseChatMessageBase.h:20
@ MessageChunk
Definition ServerResponseChatMessageBase.h:22
@ MessageStart
Definition ServerResponseChatMessageBase.h:21
@ MessageEnd
Definition ServerResponseChatMessageBase.h:23
@ MessageCancelled
Definition ServerResponseChatMessageBase.h:24
const FGuid SESSION_ID
The session ID this message belongs to.
Definition ServerResponseChatMessageBase.h:54
const FGuid MESSAGE_ID
The unique ID of the message.
Definition ServerResponseChatMessageBase.h:52
ServerResponseChatMessageBase(ChatMessageType messageType, FGuid messageId, FGuid sessionId)
Construct a base chat message response.
Definition ServerResponseChatMessageBase.h:37
const ChatMessageType MESSAGE_TYPE
The type of this chat message (start, chunk, end, cancelled).
Definition ServerResponseChatMessageBase.h:50