Package org.jivesoftware.smackx.muc

Examples of org.jivesoftware.smackx.muc.MultiUserChat.invite()


            // Send an empty room configuration form which indicates that we
            // want
            // an instant room
            muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
            for (String user : users) {
                muc.invite(user, reason);
            }

            System.out.println("Created Chat Room :" + roomName + " with " + users);
            myChatRooms.add(muc);
        } catch (XMPPException e) {
View Full Code Here


            muc = getChatRoomByName(roomName + "@" + conferenceServer);
        }
        System.out.println("invited #:" + users.size());
        if (muc != null) {
            for (String user : users) {
                muc.invite(user, "Invite");
                System.out.println("invited :" + user);
            }
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.