5#include "CoreMinimal.h"
6#include "UObject/NoExportTypes.h"
7#include "PPF_Platform.h"
8#include "OnlineSubsystemPicoNames.h"
9#include "OnlineSubsystemPico.h"
10#include "Pico_AssetFile.generated.h"
17DECLARE_LOG_CATEGORY_EXTERN(PicoAssetFile, Log, All);
19DECLARE_DYNAMIC_DELEGATE_ThreeParams(FAssetFileDeleteResult,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetFileDeleteResult*, DeleteResult);
20DECLARE_DYNAMIC_DELEGATE_ThreeParams(FAssetFileDownloadResult,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetFileDownloadResult*, DownloadResult);
21DECLARE_DYNAMIC_DELEGATE_ThreeParams(FAssetFileDownloadCancelResult,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetFileDownloadCancelResult*, DownloadCancelResult);
22DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetAssetFileStatus,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetStatus*, AssetFileStatus);
23DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetAssetFileList,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetDetailsArray*, AssetDetailsArray);
45 FOnlineSubsystemPico& PicoSubsystem;
51 FAssetFileDeleteResult DeleteByIDDelegate;
52 FAssetFileDeleteResult DeleteByNameDelegate;
53 FAssetFileDownloadResult DownloadByIdDelegate;
54 FAssetFileDownloadResult DownloadByNameDelegate;
55 FAssetFileDownloadCancelResult DownloadCancelByIdDelegate;
56 FAssetFileDownloadCancelResult DownloadCancelNameIdDelegate;
57 FGetAssetFileStatus GetAssetFileStatusByIdDelegate;
58 FGetAssetFileStatus GetAssetFileStatusByNameDelegate;
59 FGetAssetFileList GetAssetFileListDelegate;
60 FGetAssetFileList GetNextAssetDetailsArrayPageDelegate;
90 bool DeleteByID(FString AssetFileID, FAssetFileDeleteResult InDeleteByIDDelegate);
105 bool DeleteByName(FString AssetFileName, FAssetFileDeleteResult InDeleteByNameDelegate);
119 bool DownloadById(FString AssetFileID, FAssetFileDownloadResult InDownloadByIDDelegate);
133 bool DownloadByName(FString AssetFileName, FAssetFileDownloadResult InDownloadByNameDelegate);
147 bool DownloadCancelById(FString AssetFileID, FAssetFileDownloadCancelResult InDownloadCancelByIDDelegate);
161 bool DownloadCancelByName(FString AssetFileName, FAssetFileDownloadCancelResult InDownloadCancelByNameDelegate);
218 FDelegateHandle AssetFileDownloadUpdateHandle;
219 void OnAssetFileDownloadUpdate(ppfMessageHandle Message,
bool bIsError);
221 FDelegateHandle AssetFileDeleteForSafetyHandle;
222 void OnAssetFileDeleteForSafety(ppfMessageHandle Message,
bool bIsError);
262 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|AssetFile")
263 static
bool DeleteByID(UObject* WorldContextObject, FString AssetFileID, FAssetFileDeleteResult InDeleteByIDDelegate);
279 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
280 static
bool DeleteByName(UObject* WorldContextObject, FString AssetFileName, FAssetFileDeleteResult InDeleteByNameDelegate);
295 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
296 static
bool DownloadById(UObject* WorldContextObject, FString AssetFileID, FAssetFileDownloadResult InDownloadByIDDelegate);
311 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
312 static
bool DownloadByName(UObject* WorldContextObject, FString AssetFileName, FAssetFileDownloadResult InDownloadByNameDelegate);
327 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
328 static
bool DownloadCancelById(UObject* WorldContextObject, FString AssetFileID, FAssetFileDownloadCancelResult InDownloadCancelByIDDelegate);
343 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
344 static
bool DownloadCancelByName(UObject* WorldContextObject, FString AssetFileName, FAssetFileDownloadCancelResult InDownloadCancelByNameDelegate);
358 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
359 static
bool GetAssetFileList(UObject* WorldContextObject, FGetAssetFileList InGetAssetFileListDelegate);
374 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
375 static
bool GetNextAssetDetailsArrayPage(UObject* WorldContextObject,
UPico_AssetDetailsArray* InAssetDetailsArray, FGetAssetFileList InGetNextAssetDetailsArrayPageDelegate);
390 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
391 static
bool GetAssetFileStatusById(UObject* WorldContextObject, FString AssetFileID, FGetAssetFileStatus InGetAssetFileStatusByIdDelegate);
406 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
407 static
bool GetAssetFileStatusByName(UObject* WorldContextObject, FString AssetFileName, FGetAssetFileStatus InGetAssetFileStatusByNameDelegate);
423 void InitParams(ppfAssetFileDeleteResult* InppfAssetFileDeleteResultHandle);
426 FString AssetId = FString();
427 FString FilePath = FString();
428 bool bIsSuccessed =
false;
429 ppfID ppfAssetId = 0;
434 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Delete Result")
435 FString GetAssetId();
438 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Delete Result")
439 FString GetFilePath();
442 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Delete Result")
445 ppfID GetppfAssetId();
456 void InitParams(ppfAssetDetails* InppfAssetDetailsHandle);
459 FString AssetId = FString();
460 FString AssetType = FString();
461 FString DownloadStatus = FString();
462 FString FilePath = FString();
463 FString IapStatus = FString();
464 FString Metadata = FString();
465 FString Filename = FString();
467 FString IapSku = FString();
468 FString IapName = FString();
469 FString IapPrice = FString();
470 FString IapCurrency = FString();
471 FString IapDescription = FString();
472 FString IapIconUrl = FString();
473 ppfID ppfAssetId = 0;
477 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Asset Details")
478 FString GetAssetId();
481 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
482 FString GetFilePath();
487 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
488 FString GetAssetType();
491 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
492 FString GetDownloadStatus();
495 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
496 FString GetIapStatus();
499 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
500 FString GetMetadata();
503 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
504 FString GetFilename();
507 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
511 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
515 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
516 FString GetIapName();
519 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
520 FString GetIapPrice();
523 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
524 FString GetIapCurrency();
527 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
528 FString GetIapDescription();
531 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
532 FString GetIapIconUrl();
534 ppfID GetppfAssetId();
545 void InitParams(ppfAssetDetailsArray* InppfAssetDetailsArrayHandle);
549 TArray<UPico_AssetDetails*> AssetDetailsArray;
552 bool bHasNextPage =
false;
553 FString NextPageParam = FString();
559 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Asset Details Array")
563 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details Array")
567 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details Array")
568 bool GetHasNextPage();
570 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details Array")
571 FString GetNextPageParam();
582 void InitParams(ppfAssetFileDownloadCancelResult* InppfAssetFileDownloadCancelResultHandle);
585 FString AssetId = FString();
586 FString FilePath = FString();
587 bool bIsSuccessed =
false;
588 ppfID ppfAssetId = 0;
592 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Download Cancel Result")
593 FString GetAssetId();
596 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Cancel Result")
597 FString GetFilePath();
600 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Cancel Result")
603 ppfID GetppfAssetId();
614 void InitParams(ppfAssetFileDownloadUpdate* InppfAssetFileDownloadUpdateHandle);
617 FString AssetId = FString();
618 int64 BytesTotal = 0;
619 int64 BytesTransferred = 0;
621 ppfID ppfAssetId = 0;
626 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Download Update")
627 FString GetAssetId();
630 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Update")
631 int64 GetBytesTotal();
634 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Update")
635 int64 GetBytesTransferred();
638 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Update")
641 ppfID GetppfAssetId();
652 void InitParams(ppfAssetFileDownloadResult* InppfAssetFileDownloadResultHandle);
655 FString AssetId = FString();
656 FString FilePath = FString();
657 ppfID ppfAssetId = 0;
662 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Download Result")
663 FString GetAssetId();
666 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Result")
667 FString GetFilePath();
669 ppfID GetppfAssetId();
680 void InitParams(ppfAssetStatus* InppfAssetStatusHandle);
683 FString AssetId = FString();
684 FString FilePath = FString();
685 FString FileName = FString();
686 FString DownloadStatus = FString();
687 ppfID ppfAssetId = 0;
692 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Asset Status")
693 FString GetAssetId();
696 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Status")
697 FString GetFilePath();
700 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Status")
701 FString GetFileName();
704 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Status")
705 FString GetDownloadStatus();
707 ppfID GetppfAssetId();
718 void InitParams(ppfAssetFileDeleteForSafety* InppfAssetFileDeleteForSafetyHandle);
721 FString AssetId = FString();
722 FString Reason = FString();
723 ppfID ppfAssetId = 0;
728 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Delete For Safety")
729 FString GetAssetId();
732 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Delete For Safety")
735 ppfID GetppfAssetId();
PicoAssetFileInterface class.
Definition: Pico_AssetFile.h:42
bool DownloadCancelByName(FString AssetFileName, FAssetFileDownloadCancelResult InDownloadCancelByNameDelegate)
Cancels the download of an asset file by asset file name.
bool DownloadCancelById(FString AssetFileID, FAssetFileDownloadCancelResult InDownloadCancelByIDDelegate)
Cancels the download of an asset file by asset file ID.
FAssetFileDeleteForSafetyNotify AssetFileDeleteForSafetyCallback
Sets the callback to automatically delete a downloaded asset file if it is different from the origina...
Definition: Pico_AssetFile.h:75
bool DownloadById(FString AssetFileID, FAssetFileDownloadResult InDownloadByIDDelegate)
Downloads an asset file by asset file ID.
bool DeleteByName(FString AssetFileName, FAssetFileDeleteResult InDeleteByNameDelegate)
Deletes an installed asset file by asset file name. The corresponding asset file will be removed from...
bool GetAssetFileStatusById(FString AssetFileID, FGetAssetFileStatus InGetAssetFileStatusByIdDelegate)
Gets the download status of an asset file by asset file ID.
bool DeleteByID(FString AssetFileID, FAssetFileDeleteResult InDeleteByIDDelegate)
Deletes an installed asset file by asset file ID. The corresponding asset file will be removed from t...
FAssetFileDownloadUpdateNotify AssetFileDownloadUpdateCallback
Sets the callback to track the download progress of asset file. The Transferred field indicates the n...
Definition: Pico_AssetFile.h:68
bool GetNextAssetDetailsArrayPage(UPico_AssetDetailsArray *InAssetDetailsArray, FGetAssetFileList InGetNextAssetDetailsArrayPageDelegate)
Gets the next page of the asset file list.
bool DownloadByName(FString AssetFileName, FAssetFileDownloadResult InDownloadByNameDelegate)
Downloads an asset file by asset file name.
bool GetAssetFileStatusByName(FString AssetFileName, FGetAssetFileStatus InGetAssetFileStatusByNameDelegate)
Gets the download status of an asset file by asset file name.
bool GetAssetFileList(FGetAssetFileList InGetAssetFileListDelegate)
Gets the asset file list.
OnlinePicoAssetFile Blueprint Function class.
Definition: Pico_AssetFile.h:242
UPico_AssetDetailsArray class.
Definition: Pico_AssetFile.h:540
UPico_AssetDetails class.
Definition: Pico_AssetFile.h:451
UPico_AssetFileDeleteForSafety class.
Definition: Pico_AssetFile.h:713
UPico_AssetFileDeleteResult class.
Definition: Pico_AssetFile.h:418
UPico_AssetFileDownloadCancelResult class.
Definition: Pico_AssetFile.h:577
UPico_AssetFileDownloadResult class.
Definition: Pico_AssetFile.h:647
UPico_AssetFileDownloadUpdate class.
Definition: Pico_AssetFile.h:609
UPico_AssetStatus class.
Definition: Pico_AssetFile.h:675
EAssetFileDownloadCompleteStatus
The status of the file in the file download process.
Definition: OnlineSubsystemPicoNames.h:579