com.bandwidth.iris.sdk.model.City Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-java-iris-sdk Show documentation
Show all versions of bandwidth-java-iris-sdk Show documentation
Java SDK for use with the IRIS API.
package com.bandwidth.iris.sdk.model;
import com.bandwidth.iris.sdk.IrisClient;
import com.bandwidth.iris.sdk.IrisPath;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
import java.util.Map;
@XmlRootElement(name = "City")
@XmlAccessorType(XmlAccessType.FIELD)
public class City {
@XmlElement(name = "RcAbbreviation")
private String rcAbbreviation;
@XmlElement(name = "Name")
private String name;
public static List list(IrisClient client, Map query) throws Exception {
return client.get(client.buildModelUri(new String[] {
IrisPath.CITIES_URI_PATH }, query), CityResponse.class).getCities();
}
public String getRcAbbreviation() {
return rcAbbreviation;
}
public void setRcAbbreviation(String rcAbbreviation) {
this.rcAbbreviation = rcAbbreviation;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}