UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
VoxtaApiResponseHandler Class Reference

VoxtaApiResponseHandler Stateless utility class for deserializing and mapping raw SignalR responses from the VoxtaServer into strongly-typed C++ data structures. More...

#include <VoxtaApiResponseHandler.h>

Static Public Member Functions

static TUniquePtr< ServerResponseBaseGetResponseData (const TMap< FString, FSignalRValue > &serverResponseData)
 Deserialize a SignalR response from the VoxtaServer into the corresponding ServerResponseBase-derived struct.
 

Static Public Attributes

static const TSet< FString > IGNORED_MESSAGE_TYPES
 Set of message types that we could receive from VoxtaServer but are considered safe to ignore and require no handling.
 

Detailed Description

VoxtaApiResponseHandler Stateless utility class for deserializing and mapping raw SignalR responses from the VoxtaServer into strongly-typed C++ data structures.

Used internally by VoxtaClient to process server messages.

All methods are static and the class holds no mutable state.

Member Function Documentation

◆ GetResponseData()

TUniquePtr< ServerResponseBase > VoxtaApiResponseHandler::GetResponseData ( const TMap< FString, FSignalRValue > & serverResponseData)
static

Deserialize a SignalR response from the VoxtaServer into the corresponding ServerResponseBase-derived struct.

Parameters
serverResponseDataThe raw data received from the SignalR message.
Returns
A TUniquePtr to the deserialized object, or nullptr if deserialization failed.

Member Data Documentation

◆ IGNORED_MESSAGE_TYPES

const TSet< FString > VoxtaApiResponseHandler::IGNORED_MESSAGE_TYPES
static
Initial value:
{
EASY_STRING("chatStarting"),
EASY_STRING("chatLoadingMessage"),
EASY_STRING("chatsSessionsUpdated"),
EASY_STRING("replyGenerating"),
EASY_STRING("chatFlow"),
EASY_STRING("speechRecognitionStart"),
EASY_STRING("recordingRequest"),
EASY_STRING("recordingStatus"),
EASY_STRING("speechPlaybackComplete"),
EASY_STRING("memoryUpdated"),
EASY_STRING("moduleRuntimeInstances"),
}
#define EASY_STRING(x)
Macro to make a FString from a literal without the extra overhead.
Definition VoxtaDefines.h:13

Set of message types that we could receive from VoxtaServer but are considered safe to ignore and require no handling.


The documentation for this class was generated from the following files: