esendex.sdk.java.model.domain.impl.SentMessageResponseImpl 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 java.util.Date;
import esendex.sdk.java.model.domain.response.SentMessageResponse;
/**
* A SentMessageResponse.
*/
public class SentMessageResponseImpl extends MessageResponseImpl implements SentMessageResponse {
private Date sentAt;
private Date deliveredAt;
private Date lastStatusAt;
private Date submittedAt;
private String userName;
public SentMessageResponseImpl() {
}
public Date getSentat() {
return sentAt;
}
public Date getDeliveredAt() {
return deliveredAt;
}
public Date getLastStatusAt() {
return lastStatusAt;
}
public Date getSubmittedAt() {
return submittedAt;
}
public String getUserName() {
return userName;
}
protected void setSentAt(Date sentAt) {
this.sentAt = sentAt;
}
protected void setDeliveredAt(Date deliveredAt) {
this.deliveredAt = deliveredAt;
}
protected void setLastStatusAt(Date lastStatusAt) {
this.lastStatusAt = lastStatusAt;
}
protected void setSubmittedAt(Date submittedAt) {
this.submittedAt = submittedAt;
}
protected void setUserName(String userName) {
this.userName = userName;
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return
super.toString() +
"\nsentAt: " + getSentat() +
"\ndeliveredAt: " + getDeliveredAt() +
"\nlastStatusAt: " + getLastStatusAt() +
"\nsubmittedAt: " + getSubmittedAt() +
"\nuserName: " + getUserName();
}
}