A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UVaRestSubsystem Class Reference

UCLASS() More...

#include <VaRestSubsystem.h>

Inheritance diagram for UVaRestSubsystem:
[legend]

Public Member Functions

 UVaRestSubsystem ()
 
void CallURL (const FString &URL, EVaRestRequestVerb Verb, EVaRestRequestContentType ContentType, UVaRestJsonObject *VaRestJson, const FVaRestCallDelegate &Callback)
 UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
 
UVaRestJsonValueConstructJsonValue (const TSharedPtr< FJsonValue > &InValue)
 
UVaRestJsonValueConstructJsonValueArray (const TArray< UVaRestJsonValue * > &InArray)
 UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Array Value"), Category = "VaRest|Subsystem")
 
UVaRestJsonValueConstructJsonValueBool (bool InValue)
 UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Bool Value"), Category = "VaRest|Subsystem")
 
UVaRestJsonValueConstructJsonValueNumber (float Number)
 UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Number Value"), Category = "VaRest|Subsystem")
 
UVaRestJsonValueConstructJsonValueObject (UVaRestJsonObject *JsonObject)
 UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Object Value"), Category = "VaRest|Subsystem")
 
UVaRestJsonValueConstructJsonValueString (const FString &StringValue)
 UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json String Value"), Category = "VaRest|Subsystem")
 
UVaRestJsonObjectConstructVaRestJsonObject ()
 UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Object"), Category = "VaRest|Subsystem")
 
UVaRestRequestJSONConstructVaRestRequest ()
 UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request (Empty)"), Category = "VaRest|Subsystem")
 
UVaRestRequestJSONConstructVaRestRequestExt (EVaRestRequestVerb Verb, EVaRestRequestContentType ContentType)
 UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request"), Category = "VaRest|Subsystem")
 
UVaRestJsonObjectDecodeJsonObject (const FString &JsonString)
 UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem")
 
UVaRestJsonValueDecodeJsonValue (const FString &JsonString)
 UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem")
 
virtual void Deinitialize () override
 
virtual void Initialize (FSubsystemCollectionBase &Collection) override
 
UVaRestJsonObjectLoadJsonFromFile (const FString &Path, const bool bIsRelativeToContentDir=true)
 UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
 
void OnCallComplete (UVaRestRequestJSON *Request)
 

Static Public Member Functions

static UVaRestJsonObjectStaticConstructVaRestJsonObject ()
 UFUNCTION()
 

Protected Attributes

TMap< UVaRestRequestJSON *, FVaRestCallResponseRequestMap
 UPROPERTY()
 

Private Member Functions

 GENERATED_BODY ()
 

Detailed Description

UCLASS()

Definition at line 44 of file VaRestSubsystem.h.

Constructor & Destructor Documentation

◆ UVaRestSubsystem()

UVaRestSubsystem::UVaRestSubsystem ( )

Definition at line 15 of file VaRestSubsystem.cpp.

Member Function Documentation

◆ CallURL()

void UVaRestSubsystem::CallURL ( const FString & URL,
EVaRestRequestVerb Verb,
EVaRestRequestContentType ContentType,
UVaRestJsonObject * VaRestJson,
const FVaRestCallDelegate & Callback )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")

Easy way to process http requests

Definition at line 33 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ ConstructJsonValue()

UVaRestJsonValue * UVaRestSubsystem::ConstructJsonValue ( const TSharedPtr< FJsonValue > & InValue)

Create new Json value from FJsonValue (to be used from VaRestJsonObject)

Definition at line 159 of file VaRestSubsystem.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructJsonValueArray()

UVaRestJsonValue * UVaRestSubsystem::ConstructJsonValueArray ( const TArray< UVaRestJsonValue * > & InArray)
BlueprintPure

UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Array Value"), Category = "VaRest|Subsystem")

Create new Json Array value

Definition at line 132 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ ConstructJsonValueBool()

UVaRestJsonValue * UVaRestSubsystem::ConstructJsonValueBool ( bool InValue)
BlueprintPure

UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Bool Value"), Category = "VaRest|Subsystem")

Create new Json Bool value

Definition at line 122 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ ConstructJsonValueNumber()

UVaRestJsonValue * UVaRestSubsystem::ConstructJsonValueNumber ( float Number)
BlueprintPure

UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Number Value"), Category = "VaRest|Subsystem")

Create new Json Number value Attn.!! float used instead of double to make the function blueprintable!

Definition at line 102 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ ConstructJsonValueObject()

UVaRestJsonValue * UVaRestSubsystem::ConstructJsonValueObject ( UVaRestJsonObject * JsonObject)
BlueprintPure

UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Object Value"), Category = "VaRest|Subsystem")

Create new Json Object value

Definition at line 149 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ ConstructJsonValueString()

UVaRestJsonValue * UVaRestSubsystem::ConstructJsonValueString ( const FString & StringValue)
BlueprintPure

UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json String Value"), Category = "VaRest|Subsystem")

Create new Json String value

Definition at line 112 of file VaRestSubsystem.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructVaRestJsonObject()

UVaRestJsonObject * UVaRestSubsystem::ConstructVaRestJsonObject ( )
BlueprintCallable

UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Object"), Category = "VaRest|Subsystem")

Create new Json object

Definition at line 91 of file VaRestSubsystem.cpp.

Here is the caller graph for this function:

◆ ConstructVaRestRequest()

UVaRestRequestJSON * UVaRestSubsystem::ConstructVaRestRequest ( )
BlueprintCallable

UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request (Empty)"), Category = "VaRest|Subsystem")

Creates new request (totally empty)

Definition at line 76 of file VaRestSubsystem.cpp.

Here is the caller graph for this function:

◆ ConstructVaRestRequestExt()

UVaRestRequestJSON * UVaRestSubsystem::ConstructVaRestRequestExt ( EVaRestRequestVerb Verb,
EVaRestRequestContentType ContentType )
BlueprintCallable

UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request"), Category = "VaRest|Subsystem")

Creates new request with defined verb and content type

Definition at line 81 of file VaRestSubsystem.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodeJsonObject()

UVaRestJsonObject * UVaRestSubsystem::DecodeJsonObject ( const FString & JsonString)
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem")

Construct Json object from string

Definition at line 181 of file VaRestSubsystem.cpp.

Here is the caller graph for this function:

◆ DecodeJsonValue()

UVaRestJsonValue * UVaRestSubsystem::DecodeJsonValue ( const FString & JsonString)
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem")

Construct Json value from string

Definition at line 169 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ Deinitialize()

void UVaRestSubsystem::Deinitialize ( )
overridevirtual

Definition at line 27 of file VaRestSubsystem.cpp.

◆ GENERATED_BODY()

UVaRestSubsystem::GENERATED_BODY ( )
private

◆ Initialize()

void UVaRestSubsystem::Initialize ( FSubsystemCollectionBase & Collection)
overridevirtual

Definition at line 20 of file VaRestSubsystem.cpp.

◆ LoadJsonFromFile()

class UVaRestJsonObject * UVaRestSubsystem::LoadJsonFromFile ( const FString & Path,
const bool bIsRelativeToContentDir = true )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")

Load JSON from formatted text file

Parameters
bIsRelativeToContentDirif set to 'false' path is treated as absolute

Definition at line 195 of file VaRestSubsystem.cpp.

Here is the call graph for this function:

◆ OnCallComplete()

void UVaRestSubsystem::OnCallComplete ( UVaRestRequestJSON * Request)

Called when URL is processed (one for both success/unsuccess events)

Definition at line 60 of file VaRestSubsystem.cpp.

Here is the caller graph for this function:

◆ StaticConstructVaRestJsonObject()

UVaRestJsonObject * UVaRestSubsystem::StaticConstructVaRestJsonObject ( )
static

UFUNCTION()

Create new Json object (static one for MakeJson node, hack for #293)

Definition at line 96 of file VaRestSubsystem.cpp.

Member Data Documentation

◆ RequestMap

TMap<UVaRestRequestJSON*, FVaRestCallResponse> UVaRestSubsystem::RequestMap
protected

UPROPERTY()

Definition at line 74 of file VaRestSubsystem.h.


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