Examples of joinRoomWithNickname()


Examples of chatroom.server.dataclass.User.joinRoomWithNickname()

        if (to != null) {
            Jid jid = new Jid(to);
            if (jid.isUser()) {
                Room room = server.getRoom(jid.getRoom());
                User user = server.getUserByConnection(connection);
                int ret = user.joinRoomWithNickname(room, jid.getName());
                if (ret == 1) {
                    for (String other : room.getUserList()) {
                        if (!other.equals(jid.getName())) {
                            user.sendPresence(room, jid.getName(), other, null);
                        }
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.