public final class ChatService extends Object implements Comparable<ChatService>
You get an instance of this class by either using the MultiUserChatManager.createChatService(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.
|
AsyncResult<List<ChatRoom>> |
discoverRooms()
Discovers the list of chat rooms hosted by this chat service.
|
rocks.xmpp.addr.Jid |
getAddress()
Gets the service address.
|
String |
getName()
Gets the name of this service.
|
String |
toString() |
public AsyncResult<List<ChatRoom>> discoverRooms()
public ChatRoom createRoom(String room)
room - The room. This is the local part of the room address, e.g. room@service.public rocks.xmpp.addr.Jid getAddress()
public String getName()
public int compareTo(ChatService o)
compareTo in interface Comparable<ChatService>o - The other chat service.Copyright © 2014–2016 XMPP.rocks. All rights reserved.