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

com.bandwidth.iris.sdk.model.CoveredRateCenter 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.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@XmlRootElement(name = "CoveredRateCenter")
@XmlAccessorType(XmlAccessType.FIELD)
public class CoveredRateCenter {
    @XmlElement(name = "Name")
    private String name;

    @XmlElement(name = "Abbreviation")
    private String abbreviation;

    @XmlElement(name = "State")
    private String state;

    @XmlElement(name = "Lata")
    private String lata;

    @XmlElement(name = "AvailableNumberCount")
    private int availableNumberCount;

    @XmlElementWrapper(name = "ZipCodes")
    @XmlElement(name = "ZipCode")
    private List zipCodes = new ArrayList();

    @XmlElementWrapper(name = "Cities")
    @XmlElement(name = "City")
    private List cities = new ArrayList();

    @XmlElementWrapper(name = "Tiers")
    @XmlElement(name = "Tier")
    private List tiers = new ArrayList();

    @XmlElementWrapper(name = "NpaNxxXs")
    @XmlElement(name = "NpaNxxX")
    private List npaNxxXs = new ArrayList();

    @XmlElement(name = "Id")
    private String id;

    public static List list(IrisClient client, Map query) throws Exception {
        return client.get(client.buildModelUri(
                new String[] { IrisPath.COVERED_RATE_CENTER_URI_PATH }, query), CoveredRateCenters.class)
                .getCoveredRateCenters();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getLata() {
        return lata;
    }

    public void setLata(String lata) {
        this.lata = lata;
    }

    public int getAvailableNumberCount() {
        return availableNumberCount;
    }

    public void setAvailableNumberCount(int availableNumberCount) {
        this.availableNumberCount = availableNumberCount;
    }

    public List getZipCodes() {
        return zipCodes;
    }

    public void setZipCodes(List zipCodes) {
        this.zipCodes = zipCodes;
    }

    public List getCities() {
        return cities;
    }

    public void setCities(List cities) {
        this.cities = cities;
    }

    public List getTiers() {
        return tiers;
    }

    public void setTiers(List tiers) {
        this.tiers = tiers;
    }

    public List getNpaNxxXs() {
        return npaNxxXs;
    }

    public void setNpaNxxXs(List npaNxxXs) {
        this.npaNxxXs = npaNxxXs;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy