Class ListCompanyResponse


  • public class ListCompanyResponse
    extends Object
    ListCompanyResponse
    • Constructor Detail

      • ListCompanyResponse

        public ListCompanyResponse()
    • Method Detail

      • getData

        public List<Company> getData()
        The list of companies.
        Returns:
        data
      • setData

        public void setData​(List<Company> data)
      • getItemsTotal

        public Integer getItemsTotal()
        Total number of items.
        Returns:
        itemsTotal
      • setItemsTotal

        public void setItemsTotal​(Integer itemsTotal)
      • getPagesTotal

        public Integer getPagesTotal()
        Total number of pages.
        Returns:
        pagesTotal
      • setPagesTotal

        public void setPagesTotal​(Integer pagesTotal)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to ListCompanyResponse
      • fromJson

        public static ListCompanyResponse fromJson​(String jsonString)
                                            throws IOException
        Create an instance of ListCompanyResponse given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ListCompanyResponse
        Throws:
        IOException - if the JSON string is invalid with respect to ListCompanyResponse
      • toJson

        public String toJson()
        Convert an instance of ListCompanyResponse to an JSON string
        Returns:
        JSON string