Package net.amcintosh.freshbooks.models
Class Pages
java.lang.Object
net.amcintosh.freshbooks.models.Pages
Paginated list resources will contain a pages object.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pages
public Pages(int page, int pages, int perPage, int total) - Parameters:
page
- The current page of resultspages
- The total number of pagesperPage
- The number of results per pagetotal
- 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
-