public class Room extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Room.State |
| Constructor and Description |
|---|
Room(long id,
Context context,
BareJID roomJid,
String nickname) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Occupant occupant) |
Message |
createMessage(String body) |
long |
getId() |
Date |
getLastMessageDate() |
String |
getNickname() |
String |
getPassword() |
Map<String,Occupant> |
getPresences() |
BareJID |
getRoomJid() |
SessionObject |
getSessionObject() |
Room.State |
getState() |
Map<String,Occupant> |
getTempOccupants() |
Presence |
rejoin() |
void |
remove(Occupant occupant) |
void |
sendMessage(Message msg) |
Message |
sendMessage(String body) |
void |
setLastMessageDate(Date date) |
void |
setPassword(String password) |
String |
toString() |
public void add(Occupant occupant) throws XMLException
XMLExceptionpublic Message createMessage(String body) throws JaxmppException
JaxmppExceptionpublic long getId()
public Date getLastMessageDate()
public void setLastMessageDate(Date date)
public String getNickname()
public String getPassword()
public void setPassword(String password)
public BareJID getRoomJid()
public SessionObject getSessionObject()
public Room.State getState()
public Presence rejoin() throws JaxmppException
JaxmppExceptionpublic void remove(Occupant occupant) throws XMLException
XMLExceptionpublic Message sendMessage(String body) throws JaxmppException
JaxmppExceptionpublic void sendMessage(Message msg) throws JaxmppException
JaxmppExceptionCopyright © 2006–2016 Tigase. All rights reserved.