Class Pages

java.lang.Object
net.amcintosh.freshbooks.models.Pages

public class Pages extends Object
Paginated list resources will contain a pages object.
  • Constructor Details

    • Pages

      public Pages(int page, int pages, int perPage, int total)
      Parameters:
      page - The current page of results
      pages - The total number of pages
      perPage - The number of results per page
      total - The total number of results
  • Method Details

    • getPage

      public int getPage()
      Returns:
      The current page of results
    • getPages

      public int getPages()
      Returns:
      The total number of pages
    • getPerPage

      public int getPerPage()
      Returns:
      The number of results per page
    • getTotal

      public int getTotal()
      Returns:
      The total number of results
    • toString

      public String toString()
      Overrides:
      toString in class Object