Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class GithubActionsServlet extends HttpServlet {
AssistantActions assistantActions;
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//Configure and inject dependencies
.assistantModule(new AssistantModule(response))
//Handle call from Google Assistant
private RootRequest parseActionRequest(HttpServletRequest request) throws IOException {
JsonReader jsonReader = new JsonReader(request.getReader());
return new Gson().fromJson(jsonReader, RootRequest.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.