Package com.smartsheet.api.models
Class PagedResult<T>
- java.lang.Object
-
- com.smartsheet.api.models.PagedResult<T>
-
- Type Parameters:
T
- object
public class PagedResult<T> extends java.lang.Object
A wrapper object used to Wrap the data that comes back from the API. It holds the paging info as well as a List of objects of the specified type.
-
-
Constructor Summary
Constructors Constructor Description PagedResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<T>
getData()
java.lang.Integer
getPageNumber()
java.lang.Integer
getPageSize()
java.lang.Integer
getTotalCount()
java.lang.Integer
getTotalPages()
void
setData(java.util.List<T> data)
void
setPageNumber(java.lang.Integer pageNumber)
void
setPageSize(java.lang.Integer pageSize)
void
setTotalCount(java.lang.Integer totalCount)
void
setTotalPages(java.lang.Integer totalPages)
-
-
-
Method Detail
-
getData
public java.util.List<T> getData()
-
setData
public void setData(java.util.List<T> data)
-
getPageNumber
public java.lang.Integer getPageNumber()
-
setPageNumber
public void setPageNumber(java.lang.Integer pageNumber)
-
getPageSize
public java.lang.Integer getPageSize()
-
setPageSize
public void setPageSize(java.lang.Integer pageSize)
-
getTotalCount
public java.lang.Integer getTotalCount()
-
setTotalCount
public void setTotalCount(java.lang.Integer totalCount)
-
getTotalPages
public java.lang.Integer getTotalPages()
-
setTotalPages
public void setTotalPages(java.lang.Integer totalPages)
-
-