it.netgrid.got.telegram.events.TextMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-connector Show documentation
Show all versions of telegram-connector Show documentation
Bauer's stand-alone connector to the Telegram API
package it.netgrid.got.telegram.events;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class TextMessage extends TelegramMessage {
private String sender;
private String content;
private Long timestamp;
private Long chat_id;
public TextMessage() {
}
public TextMessage(Long chat_id, String sender, String content, Long timestamp) {
this.setChat_id(chat_id);
this.setSender(sender);
this.setContent(content);
this.setTimestamp(timestamp);
}
public String getSender() {
return sender;
}
public void setSender(String sender) {
this.sender = sender;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Long getTimestamp() {
return timestamp;
}
public void setTimestamp(Long timestamp) {
this.timestamp = timestamp;
}
public Long getChat_id() {
return chat_id;
}
public void setChat_id(Long chat_id) {
this.chat_id = chat_id;
}
}