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
XMLException
public Message createMessage(String body) throws JaxmppException
JaxmppException
public 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
JaxmppException
public void remove(Occupant occupant) throws XMLException
XMLException
public Message sendMessage(String body) throws JaxmppException
JaxmppException
public void sendMessage(Message msg) throws JaxmppException
JaxmppException
Copyright © 2006–2022 Tigase. All rights reserved.