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