-
- All Implemented Interfaces:
public final class ClientDefinitionBuildersKt
-
-
Method Summary
Modifier and Type Method Description final static ClientStoryDefinitionunknownStory(Function1<ClientBus, Unit> handler)Create a story addressing Intent.unknown intent. final static ClientBotDefinitionnewBot(String apiKey, List<ClientStoryDefinition> stories, ClientStoryDefinition unknownStory)Creates a new bot. final static ClientBotDefinitionnewBot(String apiKey, ClientStoryDefinition stories)Creates a new bot. final static ClientStoryDefinitionnewStory(String mainIntent, Set<IntentAware> otherStarterIntents, Set<IntentAware> secondaryIntents, List<ClientStep> steps, String storyId, Function1<ClientBus, Unit> handler)Creates a new story. final static ClientStoryDefinitionnewStory(IntentAware mainIntent, Set<IntentAware> otherStarterIntents, Set<IntentAware> secondaryIntents, List<ClientStep> steps, String storyId, Function1<ClientBus, Unit> handler)Creates a new story. final static ClientStoryHandlernewStoryHandler(Function1<ClientBus, Unit> handler)Creates a new ClientStoryHandler. -
-
Method Detail
-
unknownStory
final static ClientStoryDefinition unknownStory(Function1<ClientBus, Unit> handler)
Create a story addressing Intent.unknown intent.
-
newBot
final static ClientBotDefinition newBot(String apiKey, List<ClientStoryDefinition> stories, ClientStoryDefinition unknownStory)
Creates a new bot.
-
newBot
final static ClientBotDefinition newBot(String apiKey, ClientStoryDefinition stories)
Creates a new bot.
-
newStory
final static ClientStoryDefinition newStory(String mainIntent, Set<IntentAware> otherStarterIntents, Set<IntentAware> secondaryIntents, List<ClientStep> steps, String storyId, Function1<ClientBus, Unit> handler)
Creates a new story.
-
newStory
final static ClientStoryDefinition newStory(IntentAware mainIntent, Set<IntentAware> otherStarterIntents, Set<IntentAware> secondaryIntents, List<ClientStep> steps, String storyId, Function1<ClientBus, Unit> handler)
Creates a new story.
-
newStoryHandler
final static ClientStoryHandler newStoryHandler(Function1<ClientBus, Unit> handler)
Creates a new ClientStoryHandler.
-
-
-
-