17#include "CoreMinimal.h"
18#include "UObject/NoExportTypes.h"
19#include "PPF_Platform.h"
20#include "OnlineSubsystemPicoNames.h"
21#include "OnlineSubsystemPico.h"
22#include "Pico_AssetFile.generated.h"
29DECLARE_LOG_CATEGORY_EXTERN(PicoAssetFile, Log, All);
31DECLARE_DYNAMIC_DELEGATE_ThreeParams(FAssetFileDeleteResult,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetFileDeleteResult*, DeleteResult);
32DECLARE_DYNAMIC_DELEGATE_ThreeParams(FAssetFileDownloadResult,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetFileDownloadResult*, DownloadResult);
33DECLARE_DYNAMIC_DELEGATE_ThreeParams(FAssetFileDownloadCancelResult,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetFileDownloadCancelResult*, DownloadCancelResult);
34DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetAssetFileStatus,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetStatus*, AssetFileStatus);
35DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetAssetFileList,
bool, bIsError,
const FString&, ErrorMessage,
UPico_AssetDetailsArray*, AssetDetailsArray);
57 FOnlineSubsystemPico& PicoSubsystem;
63 FAssetFileDeleteResult DeleteByIDDelegate;
64 FAssetFileDeleteResult DeleteByNameDelegate;
65 FAssetFileDownloadResult DownloadByIdDelegate;
66 FAssetFileDownloadResult DownloadByNameDelegate;
67 FAssetFileDownloadCancelResult DownloadCancelByIdDelegate;
68 FAssetFileDownloadCancelResult DownloadCancelNameIdDelegate;
69 FGetAssetFileStatus GetAssetFileStatusByIdDelegate;
70 FGetAssetFileStatus GetAssetFileStatusByNameDelegate;
71 FGetAssetFileList GetAssetFileListDelegate;
72 FGetAssetFileList GetNextAssetDetailsArrayPageDelegate;
102 bool DeleteByID(FString AssetFileID, FAssetFileDeleteResult InDeleteByIDDelegate);
117 bool DeleteByName(FString AssetFileName, FAssetFileDeleteResult InDeleteByNameDelegate);
131 bool DownloadById(FString AssetFileID, FAssetFileDownloadResult InDownloadByIDDelegate);
145 bool DownloadByName(FString AssetFileName, FAssetFileDownloadResult InDownloadByNameDelegate);
159 bool DownloadCancelById(FString AssetFileID, FAssetFileDownloadCancelResult InDownloadCancelByIDDelegate);
173 bool DownloadCancelByName(FString AssetFileName, FAssetFileDownloadCancelResult InDownloadCancelByNameDelegate);
230 FDelegateHandle AssetFileDownloadUpdateHandle;
231 void OnAssetFileDownloadUpdate(ppfMessageHandle Message,
bool bIsError);
233 FDelegateHandle AssetFileDeleteForSafetyHandle;
234 void OnAssetFileDeleteForSafety(ppfMessageHandle Message,
bool bIsError);
274 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|AssetFile")
275 static
bool DeleteByID(UObject* WorldContextObject, FString AssetFileID, FAssetFileDeleteResult InDeleteByIDDelegate);
291 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
292 static
bool DeleteByName(UObject* WorldContextObject, FString AssetFileName, FAssetFileDeleteResult InDeleteByNameDelegate);
307 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
308 static
bool DownloadById(UObject* WorldContextObject, FString AssetFileID, FAssetFileDownloadResult InDownloadByIDDelegate);
323 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
324 static
bool DownloadByName(UObject* WorldContextObject, FString AssetFileName, FAssetFileDownloadResult InDownloadByNameDelegate);
339 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
340 static
bool DownloadCancelById(UObject* WorldContextObject, FString AssetFileID, FAssetFileDownloadCancelResult InDownloadCancelByIDDelegate);
355 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
356 static
bool DownloadCancelByName(UObject* WorldContextObject, FString AssetFileName, FAssetFileDownloadCancelResult InDownloadCancelByNameDelegate);
370 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
371 static
bool GetAssetFileList(UObject* WorldContextObject, FGetAssetFileList InGetAssetFileListDelegate);
386 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
387 static
bool GetNextAssetDetailsArrayPage(UObject* WorldContextObject,
UPico_AssetDetailsArray* InAssetDetailsArray, FGetAssetFileList InGetNextAssetDetailsArrayPageDelegate);
402 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
403 static
bool GetAssetFileStatusById(UObject* WorldContextObject, FString AssetFileID, FGetAssetFileStatus InGetAssetFileStatusByIdDelegate);
418 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|AssetFile")
419 static
bool GetAssetFileStatusByName(UObject* WorldContextObject, FString AssetFileName, FGetAssetFileStatus InGetAssetFileStatusByNameDelegate);
435 void InitParams(ppfAssetFileDeleteResult* InppfAssetFileDeleteResultHandle);
438 FString AssetId = FString();
439 FString FilePath = FString();
440 bool bIsSuccessed =
false;
441 ppfID ppfAssetId = 0;
446 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Delete Result")
447 FString GetAssetId();
450 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Delete Result")
451 FString GetFilePath();
454 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Delete Result")
457 ppfID GetppfAssetId();
468 void InitParams(ppfAssetDetails* InppfAssetDetailsHandle);
471 FString AssetId = FString();
472 FString AssetType = FString();
473 FString DownloadStatus = FString();
474 FString FilePath = FString();
475 FString IapStatus = FString();
476 FString Metadata = FString();
477 FString Filename = FString();
479 FString IapSku = FString();
480 FString IapName = FString();
481 FString IapPrice = FString();
482 FString IapCurrency = FString();
483 FString IapDescription = FString();
484 FString IapIconUrl = FString();
485 ppfID ppfAssetId = 0;
489 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Asset Details")
490 FString GetAssetId();
493 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
494 FString GetFilePath();
499 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
500 FString GetAssetType();
503 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
504 FString GetDownloadStatus();
507 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
508 FString GetIapStatus();
511 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
512 FString GetMetadata();
515 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
516 FString GetFilename();
519 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
523 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
527 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
528 FString GetIapName();
531 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
532 FString GetIapPrice();
535 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
536 FString GetIapCurrency();
539 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
540 FString GetIapDescription();
543 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details")
544 FString GetIapIconUrl();
546 ppfID GetppfAssetId();
557 void InitParams(ppfAssetDetailsArray* InppfAssetDetailsArrayHandle);
561 TArray<UPico_AssetDetails*> AssetDetailsArray;
564 bool bHasNextPage =
false;
565 FString NextPageParam = FString();
571 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Asset Details Array")
575 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details Array")
579 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details Array")
580 bool GetHasNextPage();
582 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Details Array")
583 FString GetNextPageParam();
594 void InitParams(ppfAssetFileDownloadCancelResult* InppfAssetFileDownloadCancelResultHandle);
597 FString AssetId = FString();
598 FString FilePath = FString();
599 bool bIsSuccessed =
false;
600 ppfID ppfAssetId = 0;
604 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Download Cancel Result")
605 FString GetAssetId();
608 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Cancel Result")
609 FString GetFilePath();
612 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Cancel Result")
615 ppfID GetppfAssetId();
626 void InitParams(ppfAssetFileDownloadUpdate* InppfAssetFileDownloadUpdateHandle);
629 FString AssetId = FString();
630 int64 BytesTotal = 0;
631 int64 BytesTransferred = 0;
633 ppfID ppfAssetId = 0;
638 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Download Update")
639 FString GetAssetId();
642 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Update")
643 int64 GetBytesTotal();
646 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Update")
647 int64 GetBytesTransferred();
650 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Update")
653 ppfID GetppfAssetId();
664 void InitParams(ppfAssetFileDownloadResult* InppfAssetFileDownloadResultHandle);
667 FString AssetId = FString();
668 FString FilePath = FString();
669 ppfID ppfAssetId = 0;
674 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Download Result")
675 FString GetAssetId();
678 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Download Result")
679 FString GetFilePath();
681 ppfID GetppfAssetId();
692 void InitParams(ppfAssetStatus* InppfAssetStatusHandle);
695 FString AssetId = FString();
696 FString FilePath = FString();
697 FString FileName = FString();
698 FString DownloadStatus = FString();
699 ppfID ppfAssetId = 0;
704 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Asset Status")
705 FString GetAssetId();
708 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Status")
709 FString GetFilePath();
712 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Status")
713 FString GetFileName();
716 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Asset Status")
717 FString GetDownloadStatus();
719 ppfID GetppfAssetId();
730 void InitParams(ppfAssetFileDeleteForSafety* InppfAssetFileDeleteForSafetyHandle);
733 FString AssetId = FString();
734 FString Reason = FString();
735 ppfID ppfAssetId = 0;
740 UFUNCTION(BlueprintPure, Category =
"Pico Platform|AssetFile|Delete For Safety")
741 FString GetAssetId();
744 UFUNCTION(BlueprintPure, Category = "Pico Platform|AssetFile|Delete For Safety")
747 ppfID GetppfAssetId();
PicoAssetFileInterface class.
Definition: Pico_AssetFile.h:54
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:87
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:80
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:254
UPico_AssetDetailsArray class.
Definition: Pico_AssetFile.h:552
UPico_AssetDetails class.
Definition: Pico_AssetFile.h:463
UPico_AssetFileDeleteForSafety class.
Definition: Pico_AssetFile.h:725
UPico_AssetFileDeleteResult class.
Definition: Pico_AssetFile.h:430
UPico_AssetFileDownloadCancelResult class.
Definition: Pico_AssetFile.h:589
UPico_AssetFileDownloadResult class.
Definition: Pico_AssetFile.h:659
UPico_AssetFileDownloadUpdate class.
Definition: Pico_AssetFile.h:621
UPico_AssetStatus class.
Definition: Pico_AssetFile.h:687
EAssetFileDownloadCompleteStatus
The status of the file in the file download process.
Definition: OnlineSubsystemPicoNames.h:591