
com.chain.sequence.api.BasePage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sequence-sdk Show documentation
Show all versions of sequence-sdk Show documentation
The Official Java SDK for Chain Core Developer Edition
The newest version!
package com.chain.sequence.api;
import com.chain.sequence.http.Client;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* Abstract base class representing api query results.
* @param type of api object
*/
public abstract class BasePage {
/**
* Client object that makes the query requests.
*/
protected Client client;
/**
* BasePage of api objects returned from the most recent query.
*/
@Expose(serialize = false)
@SerializedName("items")
public List items;
/**
* Specifies if the current page of results is the last.
*/
@Expose(serialize = false)
@SerializedName("last_page")
public boolean lastPage;
/**
* Specifies the details of the next query.
*/
public Query next;
public BasePage() {
this.items = new ArrayList<>();
this.lastPage = false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy