Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created May 11, 2017 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frogermcs/f0c54881471ffe99295244639ac3ad9e to your computer and use it in GitHub Desktop.
Save frogermcs/f0c54881471ffe99295244639ac3ad9e to your computer and use it in GitHub Desktop.
@Provides
@Singleton
AssistantActions provideAssistantActions(ResponseHandler responseHandler,
MainRequestHandler.Factory mainRequestHandlerFactory,
TrendingRequestHandler.Factory trendingRequestHandlerFactory) {
return new AssistantActions.Builder(responseHandler)
.addRequestHandlerFactory(StandardIntents.MAIN, mainRequestHandlerFactory)
.addRequestHandlerFactory(Intents.TRENDING, trendingRequestHandlerFactory)
.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment