com.messagebird.objects.conversations.ConversationMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messagebird-api Show documentation
Show all versions of messagebird-api Show documentation
The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.
The newest version!
package com.messagebird.objects.conversations;
import java.util.Date;
import java.util.Map;
/**
* Response object that represents a conversation's message. Messages can be
* sent to and received from a customer and are automatically threaded in a
* conversation.
*/
public class ConversationMessage {
private String id;
private String conversationId;
private String channelId;
private String trackId;
private ConversationMessageDirection direction;
private ConversationMessageStatus status;
private ConversationContentType type;
private ConversationContent content;
private Date createdDatetime;
private Date updatedDatetime;
private Map source;
private ConversationMessageTag tag;
/**
* See: {@link ConversationPlatformConstants}
*/
private String platform;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getConversationId() {
return conversationId;
}
public void setConversationId(String conversationId) {
this.conversationId = conversationId;
}
public String getChannelId() {
return channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
public ConversationMessageDirection getDirection() {
return direction;
}
public void setDirection(ConversationMessageDirection direction) {
this.direction = direction;
}
public ConversationMessageStatus getStatus() {
return status;
}
public void setStatus(ConversationMessageStatus status) {
this.status = status;
}
public ConversationContentType getType() {
return type;
}
public void setType(ConversationContentType type) {
this.type = type;
}
public ConversationContent getContent() {
return content;
}
public void setContent(ConversationContent content) {
this.content = content;
}
public Date getCreatedDatetime() {
return createdDatetime;
}
public void setCreatedDatetime(Date createdDatetime) {
this.createdDatetime = createdDatetime;
}
public Date getUpdatedDatetime() {
return updatedDatetime;
}
public void setUpdatedDatetime(Date updatedDatetime) {
this.updatedDatetime = updatedDatetime;
}
public Map getSource() {
return source;
}
public void setSource(Map source) {
this.source = source;
}
public ConversationMessageTag getTag() {
return tag;
}
public void setTag(ConversationMessageTag tag) {
this.tag = tag;
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public String getTrackId() {
return trackId;
}
public void setTrackId(String trackId) {
this.trackId = trackId;
}
@Override
public String toString() {
return "ConversationMessage{" +
"id='" + id + '\'' +
", conversationId='" + conversationId + '\'' +
", channelId='" + channelId + '\'' +
", direction=" + direction +
", status=" + status +
", type=" + type +
", trackID=" + trackId +
", content=" + content +
", createdDatetime=" + createdDatetime +
", updatedDatetime=" + updatedDatetime +
", source=" + source +
", tag=" + tag +
", platform='" + platform + '\'' +
'}';
}
}