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

com.mocean.modules.voice.mapper.VoiceResponse Maven / Gradle / Ivy

Go to download

This is an Mocean SDK written in java. To use it you will need a mocean account. Signup for free at https://moceanapi.com

There is a newer version: 1.1.5
Show newest version
package com.mocean.modules.voice.mapper;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mocean.modules.AbstractResponse;
import com.mocean.modules.voice.mapper.model.Call;

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 javax.xml.bind.annotation.XmlElementWrapper;

@XmlRootElement(name = "result")
@XmlAccessorType(XmlAccessType.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
public class VoiceResponse extends AbstractResponse {
    @XmlElementWrapper(name = "calls")
    @XmlElement(name = "call")
    @JsonProperty("calls")
    private Call[] calls;

    public Call[] getCalls() {
        return calls;
    }

    @Override
    public VoiceResponse setRawResponse(String rawResponse) {
        super.rawResponse = rawResponse;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy