public static final class RoomInfo.Builder extends DataForm.Builder<RoomInfo.Builder>
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(Collection<rocks.xmpp.addr.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(String description)
Sets a short description.
|
RoomInfo.Builder |
language(Locale language)
Sets the natural language for room discussions.
|
RoomInfo.Builder |
ldapGroup(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(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(String subject)
Sets the current discussion topic.
|
fields, formType, instructions, items, pages, reportedFields, title, typepublic RoomInfo.Builder maxHistoryMessages(int maxHistoryMessages)
maxHistoryMessages - The maximum number of history messages returned by the room.public RoomInfo.Builder contacts(Collection<rocks.xmpp.addr.Jid> contacts)
contacts - The contact addresses.public RoomInfo.Builder description(String description)
description - The description.public RoomInfo.Builder language(Locale language)
language - The language.public RoomInfo.Builder ldapGroup(String ldapGroup)
ldapGroup - LDAP group.public RoomInfo.Builder logs(URL logs)
logs - The URL.public RoomInfo.Builder currentNumberOfOccupants(int occupants)
occupants - The number of occupants.public RoomInfo.Builder subject(String subject)
subject - The topic.public RoomInfo.Builder changeSubjectAllowed(boolean changeSubjectAllowed)
changeSubjectAllowed - Whether the room subject can be modified by participants.public RoomInfo build()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.