Class AbstractResponse

java.lang.Object
codes.thischwa.cf.model.AbstractResponse
Direct Known Subclasses:
AbstractMultipleResponse, AbstractSingleResponse

public abstract class AbstractResponse extends Object
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:

  1. success: Indicates whether the API request was successful.
  2. errors: A list of error messages, if any, returned by the API.
  3. 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 Details

    • AbstractResponse

      public AbstractResponse()