Class PlayerDataStorageService
- Namespace
- PlayEveryWare.EpicOnlineServices.Samples
Class PlayerDataStorageService is a simplified wrapper for EOS PlayerDataStorage Interface.
public class PlayerDataStorageService : StorageService<PlayerDataStorageFileTransferRequestWrapper>, IDisposable
- Inheritance
-
StorageService<PlayerDataStorageFileTransferRequestWrapper>PlayerDataStorageService
- Implements
- Inherited Members
Properties
Instance
Accessor for the instance.
public static PlayerDataStorageService Instance { get; }
Property Value
Methods
AddFile(string, string, Action)
(async) Begin file data upload.
public void AddFile(string fileName, string fileContent, Action fileCreatedCallback = null)
Parameters
fileNamestringName of file.
fileContentstringFile content.
fileCreatedCallbackActionFunction called when file creation and upload is completed.
CopyFile(string, string)
(async) Begin file data copy.
public void CopyFile(string sourceFileName, string destinationFileName)
Parameters
sourceFileNamestringName of source file in EOS backend.
destinationFileNamestringName of target file to copy to.
DeleteFile(string)
(async) Begin file delete.
public void DeleteFile(string fileName)
Parameters
fileNamestringName of source file to delete.
DownloadFile(string, Action)
(async) Begin file data download.
public void DownloadFile(string fileName, Action downloadCompletedCallback = null)
Parameters
fileNamestringName of file.
downloadCompletedCallbackActionFunction called when download is completed.
GetCachedFileContent(string)
Get cached file content for specified file name.
public string GetCachedFileContent(string fileName)
Parameters
fileNamestringName of file.
Returns
- string
File content
InternalRefreshAsync()
Implementation of this function should refresh the locally cached data managed by the service manager in question.
protected override Task InternalRefreshAsync()
Returns
OnLoggedIn()
User Logged In actions
protected override void OnLoggedIn()
QueryFileList()
(async) Query list of files.
public void QueryFileList()
StartFileDataUpload(string, Action)
(async) Begin file data upload.
public bool StartFileDataUpload(string fileName, Action fileCreatedCallback = null)
Parameters
Returns
- bool
True if upload started
Events
OnFileListUpdated
public event Action OnFileListUpdated