Lesson 58 - HTTP Request Manager

This commit is contained in:
Norman Lansing
2026-03-15 17:02:22 -04:00
parent b26e9eb576
commit 3407b94731
7 changed files with 93 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UI/HTTP/HTTPRequestManager.h"
#include "APITestManager.generated.h"
/**
*
*/
UCLASS()
class DEDICATEDSERVERS_API UAPITestManager : public UHTTPRequestManager
{
GENERATED_BODY()
public:
UFUNCTION()
void ListFleetsButtonClicked();
};

View File

@@ -6,6 +6,8 @@
#include "Blueprint/UserWidget.h"
#include "APITestOverlay.generated.h"
class UAPITestManager;
class UListFleetsBox;
/**
*
*/
@@ -13,4 +15,25 @@ UCLASS()
class DEDICATEDSERVERS_API UAPITestOverlay : public UUserWidget
{
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly)
TSubclassOf<UAPITestManager> APITestManagerClass;
protected:
virtual void NativeConstruct() override;
private:
UPROPERTY(meta = (BindWidget))
TObjectPtr<UListFleetsBox> ListFleetsBox;
UPROPERTY()
TObjectPtr<UAPITestManager> APITestManager;
};

View File

@@ -0,0 +1,18 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Object.h"
#include "HTTPRequestManager.generated.h"
/**
*
*/
UCLASS(Blueprintable)
class DEDICATEDSERVERS_API UHTTPRequestManager : public UObject
{
GENERATED_BODY()
};