public final class RequestVoice extends Object
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.
|
String |
getRoomNick()
Gets the room nick.
|
boolean |
isRequestAllowed()
Indicates, whether the request is approved.
|
public RequestVoice(DataForm dataForm)
dataForm - The underlying data form.public static RequestVoice.Builder builder()
public DataForm getDataForm()
public Jid getJid()
public String getRoomNick()
public Role getRole()
public boolean isRequestAllowed()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.