A Demo Project for the UnrealEngineSDK
|
UCLASS() More...
#include <VaRestSubsystem.h>
Public Member Functions | |
UVaRestSubsystem () | |
void | CallURL (const FString &URL, EVaRestRequestVerb Verb, EVaRestRequestContentType ContentType, UVaRestJsonObject *VaRestJson, const FVaRestCallDelegate &Callback) |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility") | |
UVaRestJsonValue * | ConstructJsonValue (const TSharedPtr< FJsonValue > &InValue) |
UVaRestJsonValue * | ConstructJsonValueArray (const TArray< UVaRestJsonValue * > &InArray) |
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Array Value"), Category = "VaRest|Subsystem") | |
UVaRestJsonValue * | ConstructJsonValueBool (bool InValue) |
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Bool Value"), Category = "VaRest|Subsystem") | |
UVaRestJsonValue * | ConstructJsonValueNumber (float Number) |
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Number Value"), Category = "VaRest|Subsystem") | |
UVaRestJsonValue * | ConstructJsonValueObject (UVaRestJsonObject *JsonObject) |
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Object Value"), Category = "VaRest|Subsystem") | |
UVaRestJsonValue * | ConstructJsonValueString (const FString &StringValue) |
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json String Value"), Category = "VaRest|Subsystem") | |
UVaRestJsonObject * | ConstructVaRestJsonObject () |
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Object"), Category = "VaRest|Subsystem") | |
UVaRestRequestJSON * | ConstructVaRestRequest () |
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request (Empty)"), Category = "VaRest|Subsystem") | |
UVaRestRequestJSON * | ConstructVaRestRequestExt (EVaRestRequestVerb Verb, EVaRestRequestContentType ContentType) |
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request"), Category = "VaRest|Subsystem") | |
UVaRestJsonObject * | DecodeJsonObject (const FString &JsonString) |
UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem") | |
UVaRestJsonValue * | DecodeJsonValue (const FString &JsonString) |
UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem") | |
virtual void | Deinitialize () override |
virtual void | Initialize (FSubsystemCollectionBase &Collection) override |
UVaRestJsonObject * | LoadJsonFromFile (const FString &Path, const bool bIsRelativeToContentDir=true) |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility") | |
void | OnCallComplete (UVaRestRequestJSON *Request) |
Static Public Member Functions | |
static UVaRestJsonObject * | StaticConstructVaRestJsonObject () |
UFUNCTION() | |
Protected Attributes | |
TMap< UVaRestRequestJSON *, FVaRestCallResponse > | RequestMap |
UPROPERTY() | |
Private Member Functions | |
GENERATED_BODY () | |
UCLASS()
Definition at line 44 of file VaRestSubsystem.h.
UVaRestSubsystem::UVaRestSubsystem | ( | ) |
Definition at line 15 of file VaRestSubsystem.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
Easy way to process http requests
Definition at line 33 of file VaRestSubsystem.cpp.
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Object"), Category = "VaRest|Subsystem")
Create new Json object
Definition at line 91 of file VaRestSubsystem.cpp.
|
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.
|
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.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem")
Construct Json object from string
Definition at line 181 of file VaRestSubsystem.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Subsystem")
Construct Json value from string
Definition at line 169 of file VaRestSubsystem.cpp.
|
overridevirtual |
Definition at line 27 of file VaRestSubsystem.cpp.
|
private |
|
overridevirtual |
Definition at line 20 of file VaRestSubsystem.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
Load JSON from formatted text file
bIsRelativeToContentDir | if set to 'false' path is treated as absolute |
Definition at line 195 of file VaRestSubsystem.cpp.
void UVaRestSubsystem::OnCallComplete | ( | UVaRestRequestJSON * | Request | ) |
Called when URL is processed (one for both success/unsuccess events)
Definition at line 60 of file VaRestSubsystem.cpp.
|
static |
UFUNCTION()
Create new Json object (static one for MakeJson node, hack for #293)
Definition at line 96 of file VaRestSubsystem.cpp.
|
protected |
UPROPERTY()
Definition at line 74 of file VaRestSubsystem.h.