public interface OperationSetAdHocMultiUserChat extends OperationSet
Modifier and Type | Method and Description |
---|---|
void |
addInvitationListener(AdHocChatRoomInvitationListener listener)
Adds the given listener to the list of
AdHocChatRoomInvitationListener-s that would be notified when
an add-hoc chat room invitation has been received.
|
void |
addInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
Adds the given listener to the list of
AdHocChatRoomInvitationRejectionListener-s that would be
notified when an add-hoc chat room invitation has been rejected.
|
void |
addPresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
Adds a listener that will be notified of changes in our participation in
an ad-hoc chat room such as us being joined, left.
|
AdHocChatRoom |
createAdHocChatRoom(java.lang.String adHocRoomName,
java.util.List<java.lang.String> contacts,
java.lang.String reason)
Creates an ad-hoc room with the named adHocRoomName and in
including to the specified contacts for the given reason
.
|
AdHocChatRoom |
createAdHocChatRoom(java.lang.String adHocRoomName,
java.util.Map<java.lang.String,java.lang.Object> adHocRoomProperties)
Creates an ad-hoc room with the named adHocRoomName and
according to the specified adHocRoomProperties.
|
java.util.List<AdHocChatRoom> |
getAdHocChatRooms()
Returns a list of all currently joined AdHocChatRoom-s.
|
void |
rejectInvitation(AdHocChatRoomInvitation invitation,
java.lang.String rejectReason)
Informs the sender of an invitation that we decline their invitation.
|
void |
removeInvitationListener(AdHocChatRoomInvitationListener listener)
Removes listener from the list of invitation listeners
registered to receive invitation events.
|
void |
removeInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
Removes the given listener from the list of invitation listeners
registered to receive events every time an invitation has been rejected.
|
void |
removePresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
Removes a listener that was being notified of changes in our
participation in an ad-hoc room such as us being joined, left.
|
AdHocChatRoom createAdHocChatRoom(java.lang.String adHocRoomName, java.util.Map<java.lang.String,java.lang.Object> adHocRoomProperties) throws OperationFailedException, OperationNotSupportedException
adHocRoomName
- the name of the AdHocChatRoom to create.adHocRoomProperties
- properties specifying how the ad-hoc room should be created;
null for no properties just like an empty
Map
OperationFailedException
- if the ad-hoc room couldn't be created for some reason.OperationNotSupportedException
- if chat room creation is not supported by this serverAdHocChatRoom createAdHocChatRoom(java.lang.String adHocRoomName, java.util.List<java.lang.String> contacts, java.lang.String reason) throws OperationFailedException, OperationNotSupportedException
adHocRoomName
- the name of the AdHocChatRoom to create.contacts
- the contacts (ID) who are added to the room when it's created;
null for no contactsreason
- the reason for this invitationOperationFailedException
- if the ad-hoc room couldn't be created for some reason.OperationNotSupportedException
- if chat room creation is not supported by this serverjava.util.List<AdHocChatRoom> getAdHocChatRooms()
void addPresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
listener
- a local user participation listener.void removePresenceListener(LocalUserAdHocChatRoomPresenceListener listener)
listener
- a local user participation listener.void addInvitationListener(AdHocChatRoomInvitationListener listener)
listener
- the AdHocChatRoomInvitationListener to addvoid removeInvitationListener(AdHocChatRoomInvitationListener listener)
listener
- the invitation listener to remove.void addInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
listener
- the AdHocChatRoomInvitationListener to addvoid removeInvitationRejectionListener(AdHocChatRoomInvitationRejectionListener listener)
listener
- the invitation listener to remove.void rejectInvitation(AdHocChatRoomInvitation invitation, java.lang.String rejectReason)
invitation
- the invitation we are rejecting.rejectReason
- the reason to reject the invitation (optional)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.