Class Response<T>

java.lang.Object
com.bayudwiyansatria.spring.model.Response<T>

public class Response<T> extends Object
Response

This class represents a response object that holds a message, status, and data. It is annotated with @Data from Lombok to generate getters, setters, and other utility methods.

The message field holds the response message.

The status field indicates the success or failure of the response.

The data field holds the response payload.

Since:
0.0.1
Version:
0.0.1
Author:
Bayu Dwiyan Satria
  • Constructor Details

    • Response

      public Response(String message, boolean status, T data)
      Constructs a new Response with the specified message, status, and data.
      Parameters:
      message - the response message
      status - the status of the response
      data - data the additional data related to the response