October3d55/M/HTTPWebCommunication/Source/WebCommunication/Public/UAsyncNodeHttpGoogleFileInf...

38 lines
1.2 KiB
C++

// Copyright 2017 David Romanski(Socke). All Rights Reserved.
#pragma once
#include "WebCommunication.h"
#include "UAsyncNodeWebCom.h"
#include "UAsyncNodeHttpGoogleFileInfoRequest.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams(FAsyncNodeGoogleInfoRequestCompleteDelegate, const FString, fileName, const int64, fileSizeInBytes, const int32, statusCode, const FString, downloadID, const FString, requestID);
UCLASS()
class WEBCOMMUNICATION_API UAsyncNodeHttpGoogleFileInfoRequest : public UAsyncNodeWebCom
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable)
FAsyncNodeGoogleInfoRequestCompleteDelegate OnSuccess;
UPROPERTY(BlueprintAssignable)
FAsyncNodeGoogleInfoRequestCompleteDelegate OnFail;
UFUNCTION(BlueprintCallable, Category = "WebCommunication|GET", meta = (BlueprintInternalUseOnly = "true"))
static UAsyncNodeHttpGoogleFileInfoRequest* AsyncExecuteHTTP_GoogleFileInfo_REQUEST(FString downloadID);
virtual void Activate() override;
void httpRequestCompleteGoogleFileInfo(const FString fileName, const int64 fileSizeInBytes, const int32 statusCode, const FString downloadID, const FString requestID);
private:
FString requestID;
TArray<struct FhttpRequest> httpRequests;
};