Package com.symphony.api.model
Class Pagination
- java.lang.Object
-
- com.symphony.api.model.Pagination
-
public class Pagination extends Object
-
-
Constructor Summary
Constructors Constructor Description Pagination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pagination
cursors(Object cursors)
Object
getCursors()
Get cursorsString
getNext()
API endpoint that will return the next page of data.String
getPrevious()
API endpoint that will return the previous page of data.Pagination
next(String next)
Pagination
previous(String previous)
void
setCursors(Object cursors)
void
setNext(String next)
void
setPrevious(String previous)
String
toString()
-
-
-
Method Detail
-
getCursors
public Object getCursors()
Get cursors- Returns:
- cursors
-
setCursors
public void setCursors(Object cursors)
-
cursors
public Pagination cursors(Object cursors)
-
getPrevious
public String getPrevious()
API endpoint that will return the previous page of data. If not included, this is the first page of data.- Returns:
- previous
-
setPrevious
public void setPrevious(String previous)
-
previous
public Pagination previous(String previous)
-
getNext
public String getNext()
API endpoint that will return the next page of data. If not included, this is the last page of data. Due to how pagination works with visibility and privacy, it is possible that a page may be empty but contain a 'next' paging link. Stop paging when the 'next' link no longer appears.- Returns:
- next
-
setNext
public void setNext(String next)
-
next
public Pagination next(String next)
-
-