public final class RequestVoice
extends java.lang.Object
Represents a standardized DataForm
with form type http://jabber.org/protocol/muc#request
, which can be used to request voice in a MUC room.
DataForm
to retrieve standard data from it, use:
RequestVoice requestVoice = new RequestVoice(dataForm);
To build a form:
RequestVoice requestVoice = RequestVoice.builder()
.jid(Jid.of("hag66@shakespeare.lit/pda"))
.role(Role.PARTICIPANT)
.roomNick("thirdwitch")
.allowRequest(true)
.build();
Modifier and Type | Class and Description |
---|---|
static class |
RequestVoice.Builder
A builder to build a request voice form.
|
Constructor and Description |
---|
RequestVoice(DataForm dataForm)
Creates the request voice form.
|
Modifier and Type | Method and Description |
---|---|
static RequestVoice.Builder |
builder()
Creates the builder to build a form.
|
DataForm |
getDataForm()
Gets the underlying data form.
|
Jid |
getJid()
Gets the JID.
|
Role |
getRole()
Gets the requested role.
|
java.lang.String |
getRoomNick()
Gets the room nick.
|
boolean |
isRequestAllowed()
Indicates, whether the request is approved.
|
public RequestVoice(DataForm dataForm)
Creates the request voice form.
dataForm
- The underlying data form.public static RequestVoice.Builder builder()
Creates the builder to build a form.
public DataForm getDataForm()
Gets the underlying data form.
public Jid getJid()
Gets the JID.
public java.lang.String getRoomNick()
Gets the room nick.
public Role getRole()
Gets the requested role.
public boolean isRequestAllowed()
Indicates, whether the request is approved.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.