public interface Message
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJSON()
Gets the underlying JSON object.
|
void |
edit(String message)
Edits this message to contain the given text.
|
Optional<Date> |
getEditTimestamp()
Gets the
Date when this message was last edited, if it ever has been. |
String |
getHtml()
Gets this message's text in HTML.
|
String |
getID()
Gets this message's ID.
|
List<MentionedIssue> |
getIssues()
Gets any issues mentioned in this message.
|
Jitter |
getJitter()
Gets the providing
Jitter object. |
List<MentionedUser> |
getMentions()
Gets any users mentioned in this message.
|
MessageMetadata |
getMetadata()
Gets this message's
metadata. |
int |
getReadCount()
Gets the number of people who have read this message.
|
Room |
getRoom()
Gets the
Room this message was sent to. |
User |
getSender()
Gets the
User this message was sent by. |
Date |
getSentTimestamp()
Gets the
Date when this message was sent. |
String |
getText()
Gets this message's text in Markdown.
|
List<String> |
getURLs()
Gets any URLs mentioned in this message.
|
int |
getVersion()
Gets this message's version.
|
boolean |
isRead()
Gets whether or not the authenticated user has read this message.
|
org.json.JSONObject asJSON()
String getID()
String getText()
String getHtml()
Date getSentTimestamp()
Date when this message was sent.Optional<Date> getEditTimestamp()
Date when this message was last edited, if it ever has been.void edit(String message)
message - The new message.boolean isRead()
int getReadCount()
List<MentionedUser> getMentions()
List<MentionedIssue> getIssues()
MessageMetadata getMetadata()
metadata.int getVersion()
Copyright © 2016. All rights reserved.