Package rocks.xmpp.core.stanza.model.client

Examples of rocks.xmpp.core.stanza.model.client.Presence


        Assert.assertFalse(presence8.isAvailable());
    }

    @Test
    public void testComparableImplementation() {
        Presence presenceUnavailable = new Presence(Presence.Type.UNAVAILABLE);
        Presence presenceDnd = new Presence(Presence.Show.DND);
        presenceDnd.setPriority((byte) 1);
        Presence presenceAway = new Presence(Presence.Show.AWAY);
        presenceAway.setPriority((byte) 1);
        Presence presenceXa = new Presence(Presence.Show.XA);
        presenceXa.setPriority((byte) 1);
        Presence presenceChat = new Presence(Presence.Show.CHAT);
        presenceChat.setPriority((byte) 1);

        Presence presencePrio1 = new Presence();
        presencePrio1.setPriority((byte) 1);
        Presence presencePrio2 = new Presence();
        presencePrio2.setPriority((byte) 2);
        Presence presencePrio1Unavailble = new Presence(Presence.Type.UNAVAILABLE);
        presencePrio1Unavailble.setPriority((byte) 1);

        List<Presence> list = new ArrayList<>();
        list.add(presenceAway);
        list.add(presenceDnd);
        list.add(presenceChat);
View Full Code Here

TOP

Related Classes of rocks.xmpp.core.stanza.model.client.Presence

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.