io.everitoken.sdk.java.param.ActionQueryParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chain-sdk Show documentation
Show all versions of chain-sdk Show documentation
Official Java SDK for everiToken public chain. https://www.everitoken.io
package io.everitoken.sdk.java.param;
import com.alibaba.fastjson.JSON;
public class ActionQueryParams implements ApiParams, Paginatable {
private final String domain;
private final String key;
private final String[] names;
private final int skip;
private final int take;
public ActionQueryParams(String domain, String key, String[] names, int skip, int take) {
this.domain = domain;
this.key = key;
this.names = names;
this.skip = skip;
this.take = take;
}
public ActionQueryParams(String domain) {
this(domain, null, new String[] {}, 0, 10);
}
public ActionQueryParams(String domain, String key) {
this(domain, key, new String[] {}, 0, 10);
}
public ActionQueryParams(String domain, String key, String[] names) {
this(domain, key, names, 0, 10);
}
@Override
public String asBody() {
return JSON.toJSONString(this);
}
@Override
public int getSkip() {
return skip;
}
@Override
public int getTake() {
return take;
}
public String getDomain() {
return domain;
}
public String getKey() {
return key;
}
public String[] getNames() {
return names;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy