Package org.jivesoftware.smackx.packet

Examples of org.jivesoftware.smackx.packet.VCard.save()


    }

    public void testBinaryAvatar() throws Throwable {
        VCard card = new VCard();
        card.setAvatar(getAvatarBinary());
        card.save(getConnection(0));
        System.out.println(card.getChildElementXML());

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
View Full Code Here


        origVCard.setAddressFieldWork("STREET", "Some street work");

        origVCard.setPhoneWork("FAX", "3443233");
        origVCard.setPhoneHome("VOICE", "3443233");

        origVCard.save(getConnection(0));

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
        } catch (XMPPException e) {
View Full Code Here

    vCard.setFirstName(firstName);
    vCard.setLastName(lastName);
    vCard.setNickName(nickName);

    PacketCollector collector = myConnection.createPacketCollector(new PacketIDFilter(vCard.getPacketID()));
    vCard.save(myConnection);

    IQ response = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
    collector.cancel();

    if (response == null) {
View Full Code Here

        origVCard.setAddressFieldWork("STREET", "Some street work");

        origVCard.setPhoneWork("FAX", "3443233");
        origVCard.setPhoneHome("VOICE", "3443233");

        origVCard.save(getConnection(0));

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
        } catch (XMPPException e) {
View Full Code Here

    }

    public void testBinaryAvatar() throws Throwable {
        VCard card = new VCard();
        card.setAvatar(getAvatarBinary());
        card.save(getConnection(0));

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
        }
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.