Class ApiResponse<DATA>

java.lang.Object
com.dtsx.astra.sdk.utils.ApiResponse<DATA>
Type Parameters:
DATA - returned data by astra

public class ApiResponse<DATA> extends Object
Wrapper for Astra API RESPONSE.
Author:
Cedrick LUNVEN (@clunven)
  • Constructor Details

    • ApiResponse

      public ApiResponse()
      Default constructor.
    • ApiResponse

      public ApiResponse(DATA t)
      Default Constructor.
      Parameters:
      t - DATA
  • Method Details

    • getData

      public DATA getData()
      Getter accessor for attribute 'data'.
      Returns:
      current value of 'data'
    • getPageState

      public String getPageState()
      Getter accessor for attribute 'pageState'.
      Returns:
      current value of 'pageState'
    • setPageState

      public void setPageState(String pageState)
      Setter accessor for attribute 'pageState'.
      Parameters:
      pageState - new value for 'pageState '
    • setData

      public void setData(DATA data)
      Setter accessor for attribute 'data'.
      Parameters:
      data - new value for 'data '