Package org.elypia.webhooker
Class Payload
- java.lang.Object
-
- org.elypia.webhooker.Payload
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientgetClient()spark.RequestgetRequest()<T> TgetRequestBody(Class<T> t)spark.ResponsegetResponse()<T> voidsetResponseBody(T t)
-
-
-
Constructor Detail
-
Payload
public Payload(com.google.gson.Gson gson, Client client, spark.Request request, spark.Response response)- Parameters:
gson- TheGsonobject fromWebhooker.getGson()}.client- The client fromClientController.get(UUID).request- The request from the POST request.response- The response that will be sent back after running all callbacks.
-
-