Package org.apache.vysper.xmpp.modules.extension.xep0045_muc.dataforms

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.dataforms.VoiceRequestForm


                    relayStanza(occupant.getJid(), presenceToRemaining, serverRuntimeContext);
                }
            }
        } else if(requestAllow == null) {
            // no request allow, treat as voice request
            VoiceRequestForm requestForm = new VoiceRequestForm(from, sendingOccupant.getNick());
           
            for(Occupant moderator : room.getModerators()) {
                Stanza request = StanzaBuilder.createMessageStanza(room.getJID(), moderator.getJid(), null, null)
                    .addPreparedElement(requestForm.createFormXML()).build();
               
                relayStanza(moderator.getJid(), request, serverRuntimeContext);
            }
        }
    }
View Full Code Here


                    relayStanza(occupant.getJid(), presenceToRemaining, serverRuntimeContext);
                }
            }
        } else if(requestAllow == null) {
            // no request allow, treat as voice request
            VoiceRequestForm requestForm = new VoiceRequestForm(from, sendingOccupant.getNick());
           
            for(Occupant moderator : room.getModerators()) {
                Stanza request = StanzaBuilder.createMessageStanza(room.getJID(), moderator.getJid(), null, null)
                    .addPreparedElement(requestForm.createFormXML()).build();
               
                relayStanza(moderator.getJid(), request, serverRuntimeContext);
            }
        }
    }
View Full Code Here

        form.addField(new Field("Requested role", TEXT_SINGLE, "muc#role", "participant"));

        sendMessage(OCCUPANT2_JID, ROOM1_JID, new DataFormEncoder().getXML(form));

        Stanza request = occupant1Queue.getNext();
        assertMessageStanza(ROOM1_JID, OCCUPANT1_JID, null, new VoiceRequestForm(OCCUPANT2_JID, "Nick 2").createFormXML(), request);
    }
View Full Code Here

TOP

Related Classes of org.apache.vysper.xmpp.modules.extension.xep0045_muc.dataforms.VoiceRequestForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.