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

com.podio.conversation.Message Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy