All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bandwidth.iris.sdk.model.SearchResult Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package com.bandwidth.iris.sdk.model;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * The root entity returned by IRIS for a local or toll-free number search.
 * 

* If number details were desired (only works for local queries), * {@link #telephoneNumberDetailList} will be populated and * {@link #telephoneNumberList} will be empty. *

* If details were not desired, the plain list of numbers can be found in * {@link #telephoneNumberList} and {@link #telephoneNumberDetailList} will be * empty. */ @XmlRootElement(name = "SearchResult") @XmlAccessorType(XmlAccessType.FIELD) public class SearchResult { @XmlElement(name = "Error") private Error error; @XmlElement(name = "ResultCount") private Integer resultCount; @XmlElementWrapper(name = "TelephoneNumberList") @XmlElement(name = "TelephoneNumber") private List telephoneNumberList = new ArrayList(); @XmlElementWrapper(name = "TelephoneNumberDetailList") @XmlElement(name = "TelephoneNumberDetail") private List telephoneNumberDetailList = new ArrayList(); public Error getError() { return error; } public void setError(Error error) { this.error = error; } public Integer getResultCount() { return resultCount; } public void setResultCount(Integer resultCount) { this.resultCount = resultCount; } public List getTelephoneNumberList() { return telephoneNumberList; } public void setTelephoneNumberList(List telephoneNumberList) { this.telephoneNumberList = telephoneNumberList; } public List getTelephoneNumberDetailList() { return telephoneNumberDetailList; } public void setTelephoneNumberDetailList(List telephoneNumberDetailList) { this.telephoneNumberDetailList = telephoneNumberDetailList; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy