IStorageService

csharp
public interface IStorageService

Namespace NodeWorld.Core.

Saves small data on the device, by key.

Methods

SaveJson<T>

csharp
void SaveJson<T>(string key, T value)

Saves value as JSON under key.

LoadJson<T>

csharp
T LoadJson<T>(string key)

Reads the JSON saved under key, or the default of T.

SaveBytes

csharp
void SaveBytes(string key, byte[] data)

Saves bytes under key.

LoadBytes

csharp
byte[] LoadBytes(string key)

Reads the bytes saved under key, or null.

Delete

csharp
void Delete(string key)

Deletes what is saved under key.

Exists

csharp
bool Exists(string key)

Something is saved under key.