Class Response

java.lang.Object
dev.adlin.vts4j.entity.Response

public class Response extends Object
An object used to serialize the response from the server.
  • Constructor Details

    • Response

      public Response(@NotNull @NotNull String apiName, @NotNull @NotNull String apiVersion, long timestamp, @NotNull @NotNull String requestType, @NotNull @NotNull String requestId, @Nullable @Nullable com.google.gson.JsonObject data)
    • Response

      public Response()
  • Method Details

    • getApiName

      public String getApiName()
      Returns:
      The name of the API.
    • getApiVersion

      public String getApiVersion()
      Returns:
      The version of the API.
    • getTimestamp

      public long getTimestamp()
      Returns:
      The timestamp of the response.
    • getRequestType

      public String getRequestType()
    • getRequestId

      public String getRequestId()
      Returns:
      The unique identifier for the request.
    • getData

      public com.google.gson.JsonObject getData()
      Returns:
      The additional data associated with the response.
    • toString

      public String toString()
      Overrides:
      toString in class Object