Lesson 65 - ListFleets Callback
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include "UI/HTTP/HTTPRequestManager.h"
|
||||
#include "APITestManager.generated.h"
|
||||
|
||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnListFleetsResponseReceived, const FDS_ListFleetsResponse&, ListFleetResponse, bool, bWasSuccessful);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -18,7 +20,10 @@ class DEDICATEDSERVERS_API UAPITestManager : public UHTTPRequestManager
|
||||
public:
|
||||
|
||||
UFUNCTION()
|
||||
void ListFleetsButtonClicked();
|
||||
void ListFleets();
|
||||
|
||||
UPROPERTY()
|
||||
FOnListFleetsResponseReceived OnListFleetsResponseReceived;
|
||||
|
||||
void ListFleets_Response(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
class UAPITestManager;
|
||||
class UListFleetsBox;
|
||||
class FDS_ListFleetsResponse;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -32,6 +33,11 @@ private:
|
||||
UPROPERTY()
|
||||
TObjectPtr<UAPITestManager> APITestManager;
|
||||
|
||||
UFUNCTION()
|
||||
void ListFleetsButtonClicked();
|
||||
|
||||
UFUNCTION()
|
||||
void OnListFleetsResponseReceived(const FDS_ListFleetsResponse& ListFleetResponse, bool bWasSuccessful);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user