Package rocks.xmpp.extensions.attention.model

Examples of rocks.xmpp.extensions.attention.model.Attention


                "         type='headline'>\n" +
                "  <attention xmlns='urn:xmpp:attention:0'/>\n" +
                "  <body>Why don't you answer, Herbie?</body>\n" +
                "</message>";
        Message message = unmarshal(xml, Message.class);
        Attention attention = message.getExtension(Attention.class);
        Assert.assertNotNull(attention);
    }
View Full Code Here


     *
     * @param jid The user
     */
    public void captureAttention(Jid jid) {
        Message message = new Message(jid, Message.Type.HEADLINE);
        message.getExtensions().add(new Attention());
        xmppSession.send(message);
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.attention.model.Attention

Copyright © 2018 www.massapicom. 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.