public static final class RequestVoice.Builder extends DataForm.Builder<RequestVoice.Builder>
A builder to build a request voice form. The form is of type DataForm.Type.SUBMIT by default.
| Modifier and Type | Method and Description |
|---|---|
RequestVoice.Builder |
allowRequest(boolean allowRequest)
Whether to grant voice.
|
RequestVoice |
build()
Builds the request voice form.
|
RequestVoice.Builder |
jid(Jid jid)
Sets the JID.
|
RequestVoice.Builder |
role(Role role)
Sets the requested role.
|
RequestVoice.Builder |
roomNick(java.lang.String roomNick)
Sets the room nickname.
|
fields, formType, instructions, items, pages, reportedFields, title, typepublic RequestVoice.Builder role(Role role)
Sets the requested role.
role - The role.public RequestVoice.Builder jid(Jid jid)
Sets the JID.
jid - The JID.public RequestVoice.Builder roomNick(java.lang.String roomNick)
Sets the room nickname.
roomNick - The room nickname.public RequestVoice.Builder allowRequest(boolean allowRequest)
Whether to grant voice.
allowRequest - Whether to grant voice.public RequestVoice build()
Builds the request voice form.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.