com.podio.conversation.Message Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.conversation;
import org.codehaus.jackson.annotate.JsonProperty;
import org.joda.time.DateTime;
import com.podio.contact.ProfileMini;
public class Message {
/**
* The id of the message
*/
private int id;
/**
* The text of the message
*/
private String text;
/**
* The date the message was sent
*/
private DateTime createdOn;
/**
* The user who sent the message
*/
private ProfileMini createdBy;
@JsonProperty("message_id")
public int getId() {
return id;
}
@JsonProperty("message_id")
public void setId(int id) {
this.id = id;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@JsonProperty("created_on")
public DateTime getCreatedOn() {
return createdOn;
}
@JsonProperty("created_on")
public void setCreatedOn(DateTime createdOn) {
this.createdOn = createdOn;
}
@JsonProperty("created_by")
public ProfileMini getCreatedBy() {
return createdBy;
}
@JsonProperty("created_by")
public void setCreatedBy(ProfileMini createdBy) {
this.createdBy = createdBy;
}
}