Table of Contents

Class PlayerDataStorageService

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

PlayerDataStorageService

Methods

AddFile(string, string, Action)

(async) Begin file data upload.

public void AddFile(string fileName, string fileContent, Action fileCreatedCallback = null)

Parameters

fileName string

Name of file.

fileContent string

File content.

fileCreatedCallback Action

Function 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 string

Name of source file in EOS backend.

destinationFileName string

Name of target file to copy to.

DeleteFile(string)

(async) Begin file delete.

public void DeleteFile(string fileName)

Parameters

fileName string

Name of source file to delete.

DownloadFile(string, Action)

(async) Begin file data download.

public void DownloadFile(string fileName, Action downloadCompletedCallback = null)

Parameters

fileName string

Name of file.

downloadCompletedCallback Action

Function called when download is completed.

GetCachedFileContent(string)

Get cached file content for specified file name.

public string GetCachedFileContent(string fileName)

Parameters

fileName string

Name 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

Task

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

fileName string

Name of file.

fileCreatedCallback Action

Returns

bool

True if upload started

Events

OnFileListUpdated

public event Action OnFileListUpdated

Event Type

Action