QBChatDialog
for group chat options.@Deprecated
public class QBGroupChat
extends <any>
QBChatDialog
Modifier and Type | Method and Description |
---|---|
void |
addIsTypingListener(QBIsTypingListener<QBGroupChat> listener)
Deprecated.
Adds the 'is typing' listener.
|
void |
addMessageListener(QBMessageListener<QBGroupChat> listener)
Deprecated.
Adds the incoming messages listener.
|
void |
addMessageSentListener(<any> listener)
Deprecated.
|
void |
addParticipantListener(QBParticipantListener participantListener)
Deprecated.
Adds a listener that will be notified of any new Presence packets
sent to the group chat.
|
void |
deliverMessage(QBChatMessage message)
Deprecated.
Delivers the message.
|
void |
deliverMessage(QBChatMessage message,
QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
java.lang.String |
getDialogId()
Deprecated.
Returns dialog id of the chat
|
java.util.Collection<QBIsTypingListener<QBGroupChat>> |
getIsTypingListeners()
Deprecated.
Gets the list of 'is typing' listeners
|
java.lang.String |
getJid()
Deprecated.
Gets the JID of the group chat.
|
java.util.Collection<QBMessageListener<QBGroupChat>> |
getMessageListeners()
Deprecated.
Gets the list of message listeners.
|
java.util.Collection<<any>> |
getMessageSentListeners()
Deprecated.
|
java.util.Collection<java.lang.Integer> |
getOnlineUsers()
Deprecated.
Returns a collection of online users IDs in the group chat.
|
java.util.Collection<QBParticipantListener> |
getParticipantListeners()
Deprecated.
Gets the list of participant listeners.
|
boolean |
isJoined()
Deprecated.
Returns true if the user currently is in the group chat (after calling the join method).
|
void |
join(DiscussionHistory discussionHistory)
Deprecated.
Joins the group chat (synchronous).
|
void |
join(DiscussionHistory discussionHistory,
QBEntityCallback callback)
Deprecated.
Joins the group chat.
|
void |
leave()
Deprecated.
Leaves the group chat.
|
void |
readMessage(QBChatMessage message)
Deprecated.
Reads the message.
|
void |
readMessage(QBChatMessage message,
QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
void |
removeIsTypingListener(QBIsTypingListener<QBGroupChat> listener)
Deprecated.
Removes the 'is typing' listener.
|
void |
removeMessageListener(QBMessageListener<QBGroupChat> listener)
Deprecated.
Removes the incoming messages listener.
|
void |
removeMessageSentListener(<any> listener)
Deprecated.
|
void |
removeParticipantListener(QBParticipantListener participantListener)
Deprecated.
Removes a packet listener that was being notified of any new Presence packets sent to the group chat.
|
java.util.Collection<java.lang.Integer> |
requestOnlineUsers()
Deprecated.
Returns a collection of online users IDs in the group chat.
|
void |
sendIsTypingNotification()
Deprecated.
Sends 'is typing' notification.
|
void |
sendIsTypingNotification(QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
void |
sendMessage(QBChatMessage message)
Deprecated.
Sends a chat message to the group chat.
|
void |
sendMessage(QBChatMessage message,
QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
void |
sendMessage(java.lang.String text)
Deprecated.
Sends a chat message to the group chat.
|
void |
sendMessage(java.lang.String text,
QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
void |
sendMessageWithoutJoin(QBChatMessage message)
Deprecated.
Sends a chat message to the group chat without join it before
|
void |
sendMessageWithoutJoin(QBChatMessage message,
QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
void |
sendPresence(java.util.Map<java.lang.String,java.lang.String> extendedParameters)
Deprecated.
Sends the presence with custom parameters to the group chat.
|
void |
sendStopTypingNotification()
Deprecated.
Sends 'stop typing' notification.
|
void |
sendStopTypingNotification(QBEntityCallback<java.lang.Void> callback)
Deprecated.
|
public java.lang.String getDialogId()
public void join(DiscussionHistory discussionHistory, QBEntityCallback callback)
discussionHistory
- history config which controls the number of characters or messages to receive
when entering a room. The room will decide the amount of history to return if you don't
specify a DiscussionHistory while joining a room.public void join(DiscussionHistory discussionHistory) throws XMPPException, SmackException, java.lang.IllegalStateException
discussionHistory
- history config which controls the number of characters or messages to receive
when entering a room. The room will decide the amount of history to return if you don't
specify a DiscussionHistory while joining a room.XMPPException.XMPPErrorException
SmackException
XMPPException
java.lang.IllegalStateException
public void leave() throws XMPPException, SmackException.NotConnectedException
XMPPException
SmackException.NotConnectedException
public void sendMessage(java.lang.String text) throws SmackException.NotConnectedException
text
- The text of the message to send.SmackException.NotConnectedException
public void sendMessage(java.lang.String text, QBEntityCallback<java.lang.Void> callback)
public void sendMessage(QBChatMessage message) throws SmackException.NotConnectedException, java.lang.IllegalStateException
message
- The message to send.SmackException.NotConnectedException
java.lang.IllegalStateException
public void sendMessage(QBChatMessage message, QBEntityCallback<java.lang.Void> callback)
public void sendMessageWithoutJoin(QBChatMessage message) throws SmackException.NotConnectedException, java.lang.IllegalStateException
message
- The message to send.SmackException.NotConnectedException
java.lang.IllegalStateException
public void sendMessageWithoutJoin(QBChatMessage message, QBEntityCallback<java.lang.Void> callback)
public void sendIsTypingNotification() throws XMPPException, SmackException.NotConnectedException
XMPPException
SmackException.NotConnectedException
public void sendIsTypingNotification(QBEntityCallback<java.lang.Void> callback)
public void sendStopTypingNotification() throws XMPPException, SmackException.NotConnectedException
XMPPException
SmackException.NotConnectedException
public void sendStopTypingNotification(QBEntityCallback<java.lang.Void> callback)
public void addIsTypingListener(QBIsTypingListener<QBGroupChat> listener)
listener
- The listener to set.QBIsTypingListener
public void removeIsTypingListener(QBIsTypingListener<QBGroupChat> listener)
listener
- The listener to remove.QBIsTypingListener
public java.util.Collection<QBIsTypingListener<QBGroupChat>> getIsTypingListeners()
QBIsTypingListener
public void readMessage(QBChatMessage message) throws XMPPException, SmackException.NotConnectedException, java.lang.IllegalStateException
message
- The origin messageXMPPException
SmackException.NotConnectedException
java.lang.IllegalStateException
public void readMessage(QBChatMessage message, QBEntityCallback<java.lang.Void> callback)
public void deliverMessage(QBChatMessage message) throws XMPPException, SmackException.NotConnectedException, java.lang.IllegalStateException
message
- The origin messageXMPPException
SmackException.NotConnectedException
java.lang.IllegalStateException
public void deliverMessage(QBChatMessage message, QBEntityCallback<java.lang.Void> callback)
public void addMessageListener(QBMessageListener<QBGroupChat> listener)
listener
- The listener to set.QBMessageListener
public void removeMessageListener(QBMessageListener<QBGroupChat> listener)
listener
- The listener to remove.QBMessageListener
public java.util.Collection<QBMessageListener<QBGroupChat>> getMessageListeners()
QBMessageListener
public java.util.Collection<<any>> getMessageSentListeners()
public void addMessageSentListener(<any> listener)
public void removeMessageSentListener(<any> listener)
public void addParticipantListener(QBParticipantListener participantListener)
participantListener
- A listener that will be notified of any presence packets sent to the group chat.QBParticipantListener
public void removeParticipantListener(QBParticipantListener participantListener)
participantListener
- - A QBParticipantListener
instanceQBParticipantListener
public java.util.Collection<QBParticipantListener> getParticipantListeners()
QBParticipantListener
public boolean isJoined()
public java.lang.String getJid()
public java.util.Collection<java.lang.Integer> getOnlineUsers() throws XMPPException
org.jivesoftware.smack.XMPPException.XMPPErrorException
- if you don't have enough privileges to get this information.senXMPPException
public java.util.Collection<java.lang.Integer> requestOnlineUsers() throws XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
XMPPException.XMPPErrorException
- if the operation failed for some reason.SmackException.NotConnectedException
- if current user not connected to the chat.SmackException.NoResponseException
- if didn't get response for a specified reply timeout.public void sendPresence(java.util.Map<java.lang.String,java.lang.String> extendedParameters) throws XMPPException, SmackException.NotConnectedException, java.lang.IllegalStateException
extendedParameters
- The map of parameters.XMPPException
SmackException.NotConnectedException
java.lang.IllegalStateException