esendex.sdk.java.model.domain.impl.MessageResponseImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
The Esendex Java SDK is an easy to use client for our REST API that you can use to integrate SMS and Voice messaging into your Java application.
The newest version!
package esendex.sdk.java.model.domain.impl;
import esendex.sdk.java.model.types.MessageType;
import esendex.sdk.java.model.types.Status;
/**
* A MessageResponse is the base class for all Message responses.
*/
public abstract class MessageResponseImpl extends Identity implements MessageResponse {
private String reference;
private Status status;
private MessageType type;
private MessageContact to;
private MessageContact from;
private String summary;
private MessageBody body;
private Integer parts;
public MessageResponseImpl() {
}
public String getReference() {
return reference;
}
public Status getStatus() {
return status;
}
public MessageType getType() {
return type;
}
public MessageContact getTo() {
return to;
}
public MessageContact getFrom() {
return from;
}
public String getSummary() {
return summary;
}
public MessageBody getBody() {
return body;
}
public Integer getParts() {
return parts;
}
protected void setReference(String reference) {
this.reference = reference;
}
protected void setStatus(Status status) {
this.status = status;
}
protected void setType(MessageType type) {
this.type = type;
}
protected void setTo(MessageContact to) {
this.to = to;
}
protected void setFrom(MessageContact from) {
this.from = from;
}
protected void setSummary(String summary) {
this.summary = summary;
}
protected void setBody(MessageBody body) {
this.body = body;
}
protected void setParts(Integer parts) {
this.parts = parts;
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return
super.toString() +
"\nreference: " + reference +
"\nstatus: " + status +
"\ntype: " + type +
"\nto: " + to +
"\nfrom: " + from +
"\nsummary: " + summary +
"\nbody: " + body +
"\nparts: " + parts;
}
}