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

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

@XmlRootElement(name = "LineOptionOrder")
@XmlAccessorType(XmlAccessType.FIELD)
public class LineOptionOrder extends BaseModel {
    @XmlElement(name = "TnLineOptions")
    private List lineOptions = new ArrayList();

    public static LineOptionOrderResponse create(IrisClient client, LineOptionOrder order) throws Exception {
        LineOptionOrderResponse orderResponse = client
                .post(client.buildAccountModelUri(new String[] { IrisPath.LINE_OPTION_ORDER_URI_PATH }), order,
                        LineOptionOrderResponse.class);
        return orderResponse;
    }

    public List getLineOptions() {
        return lineOptions;
    }

    public void setLineOptions(List lineOptions) {
        this.lineOptions = lineOptions;
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy