| Constructor and Description |
|---|
RoomImpl(Jitter jitter,
org.json.JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJSON()
Gets the underlying JSON object.
|
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.
|
String |
toString() |
void |
update(org.json.JSONObject data)
Updates this Room with the given JSON data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeginEventsStreaming, beginMessageStreamingpublic RoomImpl(Jitter jitter, org.json.JSONObject json)
public Jitter getJitter()
RoomJitter object.public org.json.JSONObject asJSON()
Roompublic void update(org.json.JSONObject data)
Roompublic int getUserCount()
RoomgetUserCount in interface Roompublic int getUnreadItems()
RoomgetUnreadItems in interface Roompublic int getUnreadMentions()
RoomgetUnreadMentions in interface Roompublic String getLastAccessTime()
RoomgetLastAccessTime in interface Roompublic boolean isMember()
Roompublic boolean isFavourite()
RoomisFavourite in interface Roompublic boolean isLurkEnabled()
RoomisLurkEnabled in interface Roompublic String getPathURL()
RoomgetPathURL in interface Roompublic List<String> getTags()
Roompublic int getVersion()
RoomgetVersion in interface Roompublic List<Room> getChannels()
RoomgetChannels in interface Roompublic List<RoomUser> getUsers()
Roompublic Message getMessage(String id)
RoomMessage of a given ID.getMessage in interface Roomid - The ID.public MessageHistory getMessageHistory()
RoomgetMessageHistory in interface Roompublic MessageHistory getMessagesBefore(Message message)
RoomgetMessagesBefore in interface Roommessage - The message.public MessageHistory getMessagesAfter(Message message)
RoomgetMessagesAfter in interface Roommessage - The message.public Message sendMessage(String message)
RoomsendMessage in interface Roommessage - The message.Copyright © 2016. All rights reserved.