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

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

There is a newer version: 4.2.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy