public static final class RoomInfo.Builder extends DataForm.Builder<RoomInfo.Builder>
A builder to build a room info form. The form is of type DataForm.Type.RESULT
by default.
Modifier and Type | Method and Description |
---|---|
RoomInfo |
build()
Builds the room info.
|
RoomInfo.Builder |
changeSubjectAllowed(boolean changeSubjectAllowed)
Indicates, whether the room subject can be modified by participants.
|
RoomInfo.Builder |
contacts(java.util.Collection<Jid> contacts)
Gets the contact addresses (normally, room owner or owners).
|
RoomInfo.Builder |
currentNumberOfOccupants(int occupants)
Sets the current number of occupants in the room.
|
RoomInfo.Builder |
description(java.lang.String description)
Sets a short description.
|
RoomInfo.Builder |
language(java.util.Locale language)
Sets the natural language for room discussions.
|
RoomInfo.Builder |
ldapGroup(java.lang.String ldapGroup)
Sets an associated LDAP group that defines room membership; this should be an LDAP Distinguished Name according to an implementation-specific or deployment-specific definition of a group.
|
RoomInfo.Builder |
logs(java.net.URL logs)
Sets an URL for archived discussion logs.
|
RoomInfo.Builder |
maxHistoryMessages(int maxHistoryMessages)
Sets the maximum number of history messages returned by the room.
|
RoomInfo.Builder |
subject(java.lang.String subject)
Sets the current discussion topic.
|
fields, formType, instructions, items, pages, reportedFields, title, type
public RoomInfo.Builder maxHistoryMessages(int maxHistoryMessages)
Sets the maximum number of history messages returned by the room.
maxHistoryMessages
- The maximum number of history messages returned by the room.public RoomInfo.Builder contacts(java.util.Collection<Jid> contacts)
Gets the contact addresses (normally, room owner or owners).
contacts
- The contact addresses.public RoomInfo.Builder description(java.lang.String description)
Sets a short description.
description
- The description.public RoomInfo.Builder language(java.util.Locale language)
Sets the natural language for room discussions.
language
- The language.public RoomInfo.Builder ldapGroup(java.lang.String ldapGroup)
Sets an associated LDAP group that defines room membership; this should be an LDAP Distinguished Name according to an implementation-specific or deployment-specific definition of a group.
ldapGroup
- LDAP group.public RoomInfo.Builder logs(java.net.URL logs)
Sets an URL for archived discussion logs.
logs
- The URL.public RoomInfo.Builder currentNumberOfOccupants(int occupants)
Sets the current number of occupants in the room.
occupants
- The number of occupants.public RoomInfo.Builder subject(java.lang.String subject)
Sets the current discussion topic.
subject
- The topic.public RoomInfo.Builder changeSubjectAllowed(boolean changeSubjectAllowed)
Indicates, whether the room subject can be modified by participants.
changeSubjectAllowed
- Whether the room subject can be modified by participants.public RoomInfo build()
Builds the room info.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.