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
fileName
stringName of file.
fileContent
stringFile content.
fileCreatedCallback
ActionFunction called when file creation and upload is completed.
CopyFile(string, string)
(async) Begin file data copy.
public void CopyFile(string sourceFileName, string destinationFileName)
Parameters
sourceFileName
stringName of source file in EOS backend.
destinationFileName
stringName of target file to copy to.
DeleteFile(string)
(async) Begin file delete.
public void DeleteFile(string fileName)
Parameters
fileName
stringName of source file to delete.
DownloadFile(string, Action)
(async) Begin file data download.
public void DownloadFile(string fileName, Action downloadCompletedCallback = null)
Parameters
fileName
stringName of file.
downloadCompletedCallback
ActionFunction called when download is completed.
GetCachedFileContent(string)
Get cached file content for specified file name.
public string GetCachedFileContent(string fileName)
Parameters
fileName
stringName 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