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

com.mocean.modules.message.mapper.SmsResponse 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.message.mapper;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mocean.modules.AbstractResponse;
import com.mocean.modules.message.mapper.model.Message;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "result")
@XmlAccessorType(XmlAccessType.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
public class SmsResponse extends AbstractResponse {
    @XmlElementWrapper(name = "messages")
    @XmlElement(name = "message")
    @JsonProperty("messages")
    private Message[] messages;

    public Message[] getMessages() {
        return messages;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy