Search in sources :

Example 6 with MUCLightSetConfigsIQ

use of org.jivesoftware.smackx.muclight.element.MUCLightSetConfigsIQ in project Smack by igniterealtime.

the class MultiUserChatLight method changeSubject.

/**
     * Change the subject of the MUC Light.
     * 
     * @param subject
     * @throws NoResponseException
     * @throws XMPPErrorException
     * @throws NotConnectedException
     * @throws InterruptedException
     */
public void changeSubject(String subject) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
    MUCLightSetConfigsIQ mucLightSetConfigIQ = new MUCLightSetConfigsIQ(room, null, subject, null);
    connection.createStanzaCollectorAndSend(mucLightSetConfigIQ).nextResultOrThrow();
}
Also used : MUCLightSetConfigsIQ(org.jivesoftware.smackx.muclight.element.MUCLightSetConfigsIQ)

Aggregations

MUCLightSetConfigsIQ (org.jivesoftware.smackx.muclight.element.MUCLightSetConfigsIQ)6 Test (org.junit.Test)3 HashMap (java.util.HashMap)1