MemoryBotStorage class
ユーザー & セッション状態データを格納するためのメモリ ストレージ実装の既定値。
メソッド
| delete |
特定のコンテキストのメモリ内データを削除します。 |
| get |
指定されたコンテキストのメモリからデータを返します。 |
| save |
特定のコンテキストのデータをメモリに保存します。 |
メソッドの詳細
deleteData(IBotStorageContext)
特定のコンテキストのメモリ内データを削除します。
function deleteData(context: IBotStorageContext)
パラメーター
- context
- IBotStorageContext
getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)
指定されたコンテキストのメモリからデータを返します。
function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)
パラメーター
- context
- IBotStorageContext
- callback
-
(err: Error, data: IBotStorageData) => void
saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)
特定のコンテキストのデータをメモリに保存します。
function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)
パラメーター
- context
- IBotStorageContext
- data
- IBotStorageData
- callback
-
(err: Error) => void