IBotStorage interface
Sistema di archiviazione sostituibile usato da UniversalBot.
Metodi
| get |
Legge i dati dall'archiviazione. |
| save |
Scrive i dati nell'archiviazione. |
Dettagli metodo
getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)
Legge i dati dall'archiviazione.
function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)
Parametri
- context
- IBotStorageContext
- callback
-
(err: Error, data: IBotStorageData) => void
saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)
Scrive i dati nell'archiviazione.
function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)
Parametri
- context
- IBotStorageContext
- data
- IBotStorageData
- callback
-
(err: Error) => void