Class GoogleFunctionLogic
java.lang.Object
net.officefloor.tutorial.googlefunctionhttpserver.GoogleFunctionLogic
Logic for the Google Function HTTP Server.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePost(GoogleFunctionLogic.Post post, com.google.cloud.firestore.Firestore firestore, net.officefloor.web.ObjectResponse<PostEntity> response) voidgetPost(String identifier, com.google.cloud.firestore.Firestore firestore, net.officefloor.web.ObjectResponse<PostEntity> response) voidgetPosts(com.google.cloud.firestore.Firestore firestore, net.officefloor.web.ObjectResponse<PostEntity[]> response)
-
Constructor Details
-
GoogleFunctionLogic
public GoogleFunctionLogic()
-
-
Method Details
-
createPost
public void createPost(GoogleFunctionLogic.Post post, com.google.cloud.firestore.Firestore firestore, net.officefloor.web.ObjectResponse<PostEntity> response) throws InterruptedException, ExecutionException -
getPost
public void getPost(@HttpPathParameter("id") String identifier, com.google.cloud.firestore.Firestore firestore, net.officefloor.web.ObjectResponse<PostEntity> response) throws ExecutionException, InterruptedException -
getPosts
public void getPosts(com.google.cloud.firestore.Firestore firestore, net.officefloor.web.ObjectResponse<PostEntity[]> response) throws InterruptedException, ExecutionException
-