Package net.sf.jml.impl

Examples of net.sf.jml.impl.MsnContactListImpl.addContact()


             * There's other strange 241 error I got that should be solved with the code below
             * (James Lopez - BLuEGoD)
             */
            if((listNumber | MsnList.RL.getListId())==MsnList.RL.getListId())
                contact.setInList(MsnList.PL, true);
            contactList.addContact(contact);
        }
    }

    private void processMembers(String xml)
    {
View Full Code Here


        MsnContactImpl c = new MsnContactImpl(contactList);
        c.setEmail(email);
        c.setFriendlyName(friendlyName);
        c.setId(guid);

        contactList.addContact(c);

        addFriendToList(new MsnList[]{MsnList.AL, MsnList.FL}, c);
    }
   
    public void updateFriend(Email email, String id, String friendlyName)
View Full Code Here

        if(el == null || el.getChildNodes().getLength() > 0)
            return;

        // update contact
        contactList.removeContactById(id);
        contactList.addContact(contact);
    }

    public void addFriendToList(MsnList[] lists, MsnContactImpl contact)
    {
        for (int i = 0; i < lists.length; i++)
View Full Code Here

        if (contact == null) {
            contact = new MsnContactImpl(contactList);
            contact.setEmail(email);
            contact.setFriendlyName(getFriendlyName());
            contact.setDisplayName(contact.getFriendlyName());
            contactList.addContact(contact);
        }
        contact.setInList(list, true);

        //Added to FL, so need to added to corresponding group.
        if (list == MsnList.FL) {
View Full Code Here

                contact = new MsnContactImpl(contactList);
                contact.setEmail(Email.parseStr(contactName + "@" + domain));
                contact.setFriendlyName(name);
                contact.setDisplayName(name);

                contactList.addContact(contact);
            }

            boolean isInRList = contact.isInList(MsnList.RL);
            int listNumber = Integer.parseInt(listStr);
View Full Code Here

             * There's other strange 241 error I got that should be solved with the code below
             * (James Lopez - BLuEGoD)
             */
            if((listNumber | MsnList.RL.getListId())==MsnList.RL.getListId())
                contact.setInList(MsnList.PL, true);
            contactList.addContact(contact);
        }
    }

    private void processMembers(String xml)
    {
View Full Code Here

        MsnContactImpl c = new MsnContactImpl(contactList);
        c.setEmail(email);
        c.setFriendlyName(friendlyName);
        c.setId(guid);

        contactList.addContact(c);

        addFriendToList(new MsnList[]{MsnList.AL, MsnList.FL}, c);
    }
   
    public void updateFriend(Email email, String id, String friendlyName)
View Full Code Here

        if(el == null || el.getChildNodes().getLength() > 0)
            return;

        // update contact
        contactList.removeContactById(id);
        contactList.addContact(contact);
    }

    public void addFriendToList(MsnList[] lists, MsnContactImpl contact)
    {
        for (int i = 0; i < lists.length; i++)
View Full Code Here

        contact.setDisplayName(contact.getFriendlyName());
        contact.setListNumber(getListNum());
        for (String aGroupId : groupId) {
            contact.addBelongGroup(aGroupId);
        }
        contactList.addContact(contact);

        //Judge sync complete
        if (contactList.getCurrentContactCount() == contactList
                .getContactCount()
                && contactList.getCurrentGroupCount() == contactList
View Full Code Here

            if (contact == null) {
                contact = new MsnContactImpl(contactList);
                contact.setEmail(getEmail());
                contact.setFriendlyName(getFriendlyName());
                contact.setDisplayName(contact.getFriendlyName());
                contactList.addContact(contact);
            }
            if (syntaxType == 2) {
                contact.setId(getId());
                contact.setInList(MsnList.FL, true);
                ((AbstractMessenger) session.getMessenger())
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.