Examples of withMessageType()


Examples of com.google.appengine.api.xmpp.MessageBuilder.withMessageType()

        // sets the type of the message
        if (msgAttr.containsKey(TYPE_ATTR)) {
            Object type = msgAttr.get(TYPE_ATTR);
            if (type instanceof MessageType) {
                msgBuilder.withMessageType((MessageType) type);
            } else if (type instanceof String) {
                msgBuilder.withMessageType(MessageType.valueOf((String) type));
            }
        }
View Full Code Here

Examples of com.google.appengine.api.xmpp.MessageBuilder.withMessageType()

        if (msgAttr.containsKey(TYPE_ATTR)) {
            Object type = msgAttr.get(TYPE_ATTR);
            if (type instanceof MessageType) {
                msgBuilder.withMessageType((MessageType) type);
            } else if (type instanceof String) {
                msgBuilder.withMessageType(MessageType.valueOf((String) type));
            }
        }

        return xmppService.sendMessage(msgBuilder.build());
    }
View Full Code Here

Examples of com.google.appengine.api.xmpp.MessageBuilder.withMessageType()

        // We're sending messages to ourselves, so toJID and fromJID are the same.
        @SuppressWarnings("UnnecessaryLocalVariable")
        JID toJID = fromJID;

        MessageBuilder builder = new MessageBuilder();
        builder.withMessageType(MessageType.valueOf("CHAT"));
        builder.withFromJid(fromJID);
        builder.withRecipientJids(toJID);
        String testBody = TEST_BODY + System.currentTimeMillis();
        builder.withBody(testBody);
        builder.asXml(false);
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.