Examples of withRecipientJids()


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

    //
    boolean isAvailable = UserPresence.isUserAvailable(jid.getId());
    if (isAvailable){
     
      MessageBuilder mb = new MessageBuilder();
      Message reply = mb.withRecipientJids(jid)
        .withMessageType(MessageType.CHAT)
        .withBody(msg)
        .withFromJid(new JID("talkfeed@appspot.com"))
        .build();
     
View Full Code Here

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

        // sets the recepients of the message
        if (msgAttr.containsKey(TO_ATTR)) {
            Object to = msgAttr.get(TO_ATTR);
            if (to instanceof String) {
                msgBuilder.withRecipientJids(new JID((String) to));
            } else if (to instanceof List<?>) {
                List<?> toList = (List<?>)to;
                JID[] jids = new JID[toList.size()];
                for (int i = 0; i < toList.size(); i++) {
                    jids[i] = new JID(String.valueOf(toList.get(i)));
View Full Code Here

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

                List<?> toList = (List<?>)to;
                JID[] jids = new JID[toList.size()];
                for (int i = 0; i < toList.size(); i++) {
                    jids[i] = new JID(String.valueOf(toList.get(i)));
                }
                msgBuilder.withRecipientJids(jids);
            }
        }

        // sets the sender of the message
        if (msgAttr.containsKey(FROM_ATTR)) {
View Full Code Here

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

        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);
        Message msg = builder.build();
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.