com.messagebird.objects.voicecalls.VoiceCallFlowList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messagebird-api Show documentation
Show all versions of messagebird-api Show documentation
The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.
The newest version!
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 {
@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 pagination.toString();
}
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;
}
}