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

com.bandwidth.iris.sdk.model.RateCenter 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 = "RateCenter")
@XmlAccessorType(XmlAccessType.FIELD)
public class RateCenter {

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

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

    public String getAbbreviation() {
        return abbreviation;
    }

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

    public String getName() {
        return name;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy