public interface Room
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJSON()
Gets the underlying JSON object.
|
default void |
beginEventsStreaming()
Makes this room start streaming room events through the event API.
|
default void |
beginMessageStreaming()
Makes this room start streaming messages through the event API.
|
List<Room> |
getChannels()
Gets this room's subchannels.
|
String |
getID()
Gets this room's ID.
|
Jitter |
getJitter()
Gets the providing
Jitter object. |
String |
getLastAccessTime()
Gets the time this room was last accessed.
|
Message |
getMessage(String id)
Gets the
Message of a given ID. |
MessageHistory |
getMessageHistory()
Gets this room's message history.
|
MessageHistory |
getMessagesAfter(Message message)
Gets this room's message history, with messages after and including the given message.
|
MessageHistory |
getMessagesBefore(Message message)
Gets this room's message history, with messages before and including the given message.
|
String |
getName()
Gets this room's name.
|
String |
getPathURL()
Gets this room's URL path.
|
List<String> |
getTags()
Gets this room's tags.
|
String |
getTopic()
Gets this room's topic.
|
RoomType |
getType()
Gets this room's type.
|
int |
getUnreadItems()
Gets the number of unread messages in this room.
|
int |
getUnreadMentions()
Gets the number of unread mentions in this room.
|
String |
getURI()
Gets this room's URI.
|
int |
getUserCount()
Gets this room's user count.
|
List<RoomUser> |
getUsers()
Loads and returns this room's users.
|
int |
getVersion()
Gets this room's version.
|
boolean |
isFavourite()
Gets whether or not this room is marked as a favourite room.
|
boolean |
isLurkEnabled()
Gets whether or not the authenticated is lurking in this room.
|
boolean |
isMember()
Gets whether or not the current user is a member of this room.
|
Message |
sendMessage(String message)
Sends a message to this room.
|
void |
update(org.json.JSONObject data)
Updates this Room with the given JSON data.
|
org.json.JSONObject asJSON()
String getID()
String getName()
String getTopic()
RoomType getType()
String getURI()
int getUserCount()
int getUnreadItems()
int getUnreadMentions()
String getLastAccessTime()
boolean isMember()
boolean isFavourite()
boolean isLurkEnabled()
String getPathURL()
int getVersion()
List<RoomUser> getUsers()
Message getMessage(String id)
Message of a given ID.id - The ID.MessageHistory getMessageHistory()
MessageHistory getMessagesBefore(Message message)
message - The message.MessageHistory getMessagesAfter(Message message)
message - The message.Message sendMessage(String message)
message - The message.default void beginMessageStreaming()
default void beginEventsStreaming()
void update(org.json.JSONObject data)
data - The data.Copyright © 2016. All rights reserved.