次の方法で共有


MemoryBotStorage class

ユーザー & セッション状態データを格納するためのメモリ ストレージ実装の既定値。

メソッド

deleteData(IBotStorageContext)

特定のコンテキストのメモリ内データを削除します。

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

指定されたコンテキストのメモリからデータを返します。

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

特定のコンテキストのデータをメモリに保存します。

メソッドの詳細

deleteData(IBotStorageContext)

特定のコンテキストのメモリ内データを削除します。

function deleteData(context: IBotStorageContext)

パラメーター

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

指定されたコンテキストのメモリからデータを返します。

function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)

パラメーター

callback

(err: Error, data: IBotStorageData) => void

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

特定のコンテキストのデータをメモリに保存します。

function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)

パラメーター

callback

(err: Error) => void