Package net.sf.jml

Examples of net.sf.jml.MsnUserPropertyType


        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);

            if (propType.equals(MsnUserPropertyType.MFN)) {
                ((MsnContactImpl) contact).setFriendlyName(prop);
            }
        }

    }
View Full Code Here


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

        String prop = getProperty();
        MsnUserPropertyType propType = getPropertyType();
        if (propType != null && prop != null) {
            MsnUserPropertiesImpl properties = (MsnUserPropertiesImpl) session
                    .getMessenger().getOwner().getProperties();
            properties.setProperty(propType, prop);

            if (propType.equals(MsnUserPropertyType.MFN)) {
                MsnOwnerImpl owner = (MsnOwnerImpl) session.getMessenger().getOwner();
                owner.fSetDisplayName(prop);
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.jml.MsnUserPropertyType

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.