BotnoiChatbot class
This class is used to interact with the Botnoi Chatbot Server.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createBot(
{required Bot bot}) → Future< void> - Create a new bot for this botnoi chatbot server.
-
deleteBot(
{required Bot bot}) → Future< void> - Delete a bot in this botnoi chatbot server.
-
findBots(
) → Future< List< Bot> ?> - Find all bots in this botnoi chatbot server.
-
findBotWithName(
String name) → Future< Bot?> - Find a bot in this botnoi chatbot server with a specific name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateBot(
{required Bot bot}) → Future< void> - Update a bot in this botnoi chatbot server.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- collector → BotnoiCollector
-
The collector for collecting chatbot assets.
no setter
- didFinishSucessfully → bool
-
Check if the last function finished successfully.
no setter
- serverInstance → BotnoiChatbot
-
The instance of the BotnoiChatbot server.
no setter
Static Methods
-
dispose(
) → void - Dispose the client.
-
initializeClient(
{required String key}) → void - This needs to be called before any other functions or class in this package.
-
initializeCollector(
{bool implicitCollecting = false}) → void - This needs to be called before using the collector.
-
setErrorCallback(
void onError(String error)) → void - Register a callback function to be called when errors occured in any function in this package.