io.split.api.dtos.result.ResultDTO Maven / Gradle / Ivy
package io.split.api.dtos.result;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResultDTO {
private List objects;
private List> failed;
private Map metadata;
private Integer offset;
private Integer limit;
private Integer count;
private Integer total;
public ResultDTO() {
objects = new ArrayList<>();
failed = new ArrayList<>();
metadata = new HashMap<>();
}
@JsonProperty
public List objects() {
return objects;
}
@JsonProperty
public List> failed() {
return failed;
}
@JsonProperty
public Integer offset() {
return offset;
}
@JsonProperty
public Integer limit() {
return limit;
}
@JsonProperty
public Integer count() {
return count;
}
@JsonProperty
public Integer total() {
return total;
}
@JsonProperty
public Map metadata() {
return metadata;
}
public void setObjects(List objects) {
this.objects = objects;
}
public void setFailed(List> failed) {
this.failed = failed;
}
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public void setCount(Integer count) {
this.count = count;
}
public void setTotal(Integer total) {
this.total = total;
}
}