Package net.sf.jml

Examples of net.sf.jml.MsnContactList


    }

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnContactList contactList = session.getMessenger().getContactList();
        MsnContact contact = contactList.getContactById(getId());
        if (contact != null) {
            String prop = getProperty();
            MsnUserPropertyType propType = getPropertyType();
            MsnUserPropertiesImpl properties = (MsnUserPropertiesImpl) contact.getProperties();
            properties.setProperty(propType, prop);
View Full Code Here


    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnSwitchboard switchboard = session.getSwitchboard();
        if (switchboard != null) {
            MsnContactList contactList = session.getMessenger()
                    .getContactList();
            MsnContactImpl contact = (MsnContactImpl) contactList
                    .getContactByEmail(getEmail());
            if (contact == null) {
                contact = new MsnContactImpl(contactList);
                contact.setEmail(getEmail());
                contact.setDisplayName(getDisplayName());
View Full Code Here

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);

        MsnMessenger messenger = session.getMessenger();
        MsnContactList contactList = messenger.getContactList();
        MsnMessageChain incoming = messenger.getIncomingMessageChain();
        MsnContact contact = null;

        for (MsnMessageIterator iter = incoming.iterator(); iter.hasPrevious();) {
            MsnMessage message = iter.previous();
            if (message instanceof IncomingBPR)
                continue;
            if (message instanceof IncomingLST) {
                Email email = ((IncomingLST) message).getEmail();
                contact = contactList.getContactByEmail(email);
            } else if (message instanceof IncomingADC) {
                Email email = ((IncomingADC) message).getEmail();
                if (email == null) {
                    contact = contactList
                            .getContactById(((IncomingADC) message).getId());
                } else {
                    contact = contactList.getContactByEmail(email);
                }
            } else if (message instanceof IncomingADD) {
                Email email = ((IncomingADD) message).getEmail();
                contact = contactList.getContactByEmail(email);
            }
            break;
        }

        if (contact != null) {
View Full Code Here

  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnSwitchboard switchboard = session.getSwitchboard();
        if (switchboard != null) {
            MsnMessenger messenger = session.getMessenger();
            MsnContactList contactList = messenger.getContactList();
            MsnContactImpl contact = (MsnContactImpl) contactList
                    .getContactByEmail(getEmail());
            if (contact == null) {
                contact = new MsnContactImpl(contactList);
                contact.setEmail(getEmail());
                contact.setDisplayName(getDisplayName());
View Full Code Here

    }

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnContactList contactList = session.getMessenger().getContactList();
        if (session.getMessenger().getOwner().getEmail().toString().equals(getId())) {
            MsnOwnerImpl owner = (MsnOwnerImpl) session.getMessenger().getOwner();
            owner.fSetDisplayName(getFriendlyName());
            ((AbstractMessenger) session.getMessenger()).fireOwnerDisplayNameChanged();
        }
        else {
            MsnContact contact = contactList.getContactById(getId());
            if (contact != null) {
                ((MsnContactImpl) contact).setFriendlyName(getFriendlyName());
            }
        }
    }
View Full Code Here

    }

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnContactList contactList = session.getMessenger().getContactList();
        MsnGroup group = contactList.getGroup(getGroupId());
        if (group != null)
            ((MsnGroupImpl) group).setGroupName(getGroupName());
    }
View Full Code Here

TOP

Related Classes of net.sf.jml.MsnContactList

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.