Examples of RelayMessage


Examples of uk.ac.cam.cl.fjava.messages.RelayMessage

            try {
                while (rs.next()) {
                    String from = rs.getString(1);
                    String text = rs.getString(2);
                    Date date = new Date(rs.getLong(3));
                    RelayMessage rmes = new RelayMessage(from, text, date);
                    // always add to the head of the list, so messages in
                    // chronological order
                    recent.add(0, rmes);
                }
            }
View Full Code Here

Examples of uk.ac.cam.cl.fjava.messages.RelayMessage

            }

            else if (mesIn instanceof ChatMessage) {
                // mesOut = new RelayMessage(cHandler.nickname,
                // (ChatMessage) mesIn);
                mesOut = new RelayMessage(cHandler.nickname,
                        ((ChatMessage) mesIn).getMessage(), mesIn
                                .getCreationTime());

                try {
                    cHandler.database.addMessage((RelayMessage) mesOut);
View Full Code Here

Examples of uk.ac.cam.cl.fjava.messages.RelayMessage

                mesOut = new StatusMessage(oldnickname + "is now known as "
                        + cHandler.nickname);
            }

            else if (mesIn instanceof ChatMessage) {
                mesOut = new RelayMessage(cHandler.nickname,
                        (ChatMessage) mesIn);
            }
            if (mesOut != null) {
                cHandler.multiQueue.put(mesOut);
            }
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.