
com.messagebird.objects.voicecalls.VoiceCallFlowList Maven / Gradle / Ivy
package com.messagebird.objects.voicecalls;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Represents a listing of VoiceCallFlow objects, along with pagination details.
* @TODO needs a little polishing (reorganise methods, rename properties, add
* missing properties)
*/
public class VoiceCallFlowList implements Serializable {
private Integer offset;
private Integer limit;
private Integer totalCount;
@JsonProperty("_links")
private Map links;
private Pagination pagination;
private List items;
@JsonCreator
public VoiceCallFlowList(@JsonProperty("data") List data) {
this.items = data;
}
@Override
public String toString() {
return "ListBase{" +
"offset=" + offset +
", limit=" + limit +
", totalCount=" + totalCount +
", items=" + items +
'}';
}
public void setPagination(Pagination pagination) {
this.pagination = pagination;
}
public Integer getTotalCount() {
return this.pagination.getTotalCount();
}
public Integer getPageCount() {
return this.pagination.getPageCount();
}
public Integer getCurrentPage() {
return this.pagination.getCurrentPage();
}
public Integer getPerPage() {
return this.pagination.getPerPage();
}
public List getItems() {
return items;
}
public void setItems(List items) {
this.items = items;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy