Package codes.thischwa.cf.model
Class AbstractResponse
java.lang.Object
codes.thischwa.cf.model.AbstractResponse
- Direct Known Subclasses:
AbstractMultipleResponse
,AbstractSingleResponse
Abstract base class for API response models.
This class encapsulates common attributes used to represent the result of an API request. It can be extended to define more specific response structures.
Attributes:
- success: Indicates whether the API request was successful.
- errors: A list of error messages, if any, returned by the API.
- messages: A list of informational or status messages accompanying the response.
This structure is designed for consistency and ease of extending response models in applications that require uniform response structures.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AbstractResponse
public AbstractResponse()
-