Space Plunder
Loading...
Searching...
No Matches
HTTPFetchRequest.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Kismet/BlueprintAsyncActionBase.h"
7#include "HTTPFetchRequest.generated.h"
8
9// Event that will be the 'Completed' exec wire in the blueprint node along with all parameters as output pins.
10DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnHttpRequestCompleted, const FString&, Text, bool, bSuccess);
11
12UCLASS()
13class MENUSYSTEM_API UHTTPFetchRequest : public UBlueprintAsyncActionBase
14{
15 GENERATED_BODY()
16
17public:
19 virtual void Activate() override;
20
21 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", Category = "HTTP", WorldContext = "WorldContextObject"))
22 static UHTTPFetchRequest* AsyncRequestHTTP(UObject* WorldContextObject, FString URL, FString Field);
23
24 UPROPERTY(BlueprintAssignable)
25 FOnHttpRequestCompleted OnHttpRequestCompleted;
26
27 FString TextField;
28
29 /* URL to send GET request to */
30 FString URL;
31
32protected:
33 void HandleRequestCompleted(FString ResponseString, bool bSuccess);
34
35};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnHttpRequestCompleted, const FString &, Text, bool, bSuccess)
Definition HTTPFetchRequest.h:14