Skip to main content

UserStorageService

Stentor API Reference


Stentor API Reference / stentor-models/src / UserStorageService

Interface: UserStorageService

Defined in: packages/stentor-models/src/Services/UserStorageService.ts:4

Methods​

get()​

get(id): Promise\<Storage>

Defined in: packages/stentor-models/src/Services/UserStorageService.ts:11

Get the storage for the provided ID

Parameters​

id​

string

Returns​

Promise\<Storage>


create()​

create(id, storage): Promise\<Storage>

Defined in: packages/stentor-models/src/Services/UserStorageService.ts:19

Creates the storage for the provided ID

Parameters​

id​

string

storage​

Storage

Returns​

Promise\<Storage>


update()​

update(id, storage): Promise\<Storage>

Defined in: packages/stentor-models/src/Services/UserStorageService.ts:27

Update the storage for the provided ID with provided storage.

Parameters​

id​

string

storage​

Storage

Returns​

Promise\<Storage>