public final class ChatService extends Object implements Comparable<ChatService>
You get an instance of this class by either using the MultiUserChatManager.createChatService(rocks.xmpp.core.Jid) method or by discovering the chat services at your connected domain.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ChatService o)
Compares this chat service first by their name and then by their service address.
|
ChatRoom |
createRoom(String room)
Creates a new chat room.
|
List<ChatRoom> |
discoverRooms()
Discovers the list of chat rooms hosted by this chat service.
|
Jid |
getAddress()
Gets the service address.
|
String |
getName()
Gets the name of this service.
|
List<ChatRoom> |
getPublicRooms()
Deprecated.
Use
discoverRooms() |
String |
toString() |
@Deprecated public List<ChatRoom> getPublicRooms() throws XmppException
discoverRooms()StanzaException - If the chat service returned a stanza error.NoResponseException - If the chat service did not respond.XmppExceptionpublic List<ChatRoom> discoverRooms() throws XmppException
StanzaException - If the chat service returned a stanza error.NoResponseException - If the chat service did not respond.XmppExceptionpublic ChatRoom createRoom(String room)
room - The room. This is the local part of the room address, e.g. room@service.public Jid getAddress()
public String getName()
public int compareTo(ChatService o)
compareTo in interface Comparable<ChatService>o - The other chat service.Copyright © 2014–2015 XMPP.rocks. All rights reserved.