org.zendesk.client.v2.model.Page Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zendesk-java-client Show documentation
Show all versions of zendesk-java-client Show documentation
Java client for the Zendesk API
The newest version!
package org.zendesk.client.v2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.List;
/** This is the base class for implementing pagination on any SearchResultEntity */
public abstract class Page implements Serializable {
private static final long serialVersionUID = 456807064715979598L;
private @JsonProperty("next_page") String nextPage;
private @JsonProperty("previous_page") String previousPage;
private List results;
private int count;
public abstract Class getTargetClass();
public List getResults() {
return results;
}
public void setResults(final List results) {
this.results = results;
}
public String getNextPage() {
return nextPage;
}
public void setNextPage(final String nextPage) {
this.nextPage = nextPage;
}
public String getPreviousPage() {
return previousPage;
}
public void setPreviousPage(final String previousPage) {
this.previousPage = previousPage;
}
public int getCount() {
return count;
}
public void setCount(final int count) {
this.count = count;
}
}