Package video.api.client.api.models
Class Pagination
- java.lang.Object
-
- video.api.client.api.models.Pagination
-
- All Implemented Interfaces:
Serializable,DeepObject
public class Pagination extends Object implements Serializable, DeepObject
Pagination- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CURRENT_PAGEstatic StringSERIALIZED_NAME_CURRENT_PAGE_ITEMSstatic StringSERIALIZED_NAME_ITEMS_TOTALstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_PAGE_SIZEstatic StringSERIALIZED_NAME_PAGES_TOTAL
-
Constructor Summary
Constructors Constructor Description Pagination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginationaddLinksItem(PaginationLink linksItem)booleanequals(Object o)IntegergetCurrentPage()The current page index.IntegergetCurrentPageItems()The number of items on the current page.IntegergetItemsTotal()Total number of items that exist.List<PaginationLink>getLinks()Get linksIntegergetPageSize()Maximum number of item per page.IntegergetPagesTotal()Number of items listed in the current page.inthashCode()Paginationlinks(List<PaginationLink> links)voidsetLinks(List<PaginationLink> links)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_ITEMS_TOTAL
public static final String SERIALIZED_NAME_ITEMS_TOTAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAGES_TOTAL
public static final String SERIALIZED_NAME_PAGES_TOTAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAGE_SIZE
public static final String SERIALIZED_NAME_PAGE_SIZE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENT_PAGE
public static final String SERIALIZED_NAME_CURRENT_PAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENT_PAGE_ITEMS
public static final String SERIALIZED_NAME_CURRENT_PAGE_ITEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemsTotal
@Nullable public Integer getItemsTotal()
Total number of items that exist.- Returns:
- itemsTotal
-
getPagesTotal
@Nullable public Integer getPagesTotal()
Number of items listed in the current page.- Returns:
- pagesTotal
-
getPageSize
@Nullable public Integer getPageSize()
Maximum number of item per page.- Returns:
- pageSize
-
getCurrentPage
@Nullable public Integer getCurrentPage()
The current page index.- Returns:
- currentPage
-
getCurrentPageItems
@Nullable public Integer getCurrentPageItems()
The number of items on the current page.- Returns:
- currentPageItems
-
links
public Pagination links(List<PaginationLink> links)
-
addLinksItem
public Pagination addLinksItem(PaginationLink linksItem)
-
getLinks
public List<PaginationLink> getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(List<PaginationLink> links)
-
-