Package net.sf.jml

Examples of net.sf.jml.MsnContact


            String ip, int port) {
        super(messenger, createdByOwner, ip, port);
    }

    public void inviteContact(Email email) {
        MsnContact contact = getMessenger().getContactList().getContactByEmail(
                email);
        if (contact == null || !contact.isInList(MsnList.FL))
            return;
        if (containContact(contact))
            return;
        OutgoingCAL message = new OutgoingCAL(getMessenger()
                .getActualMsnProtocol());
View Full Code Here


            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

    {
        if (email == null || file == null)
            return null;

        // if contact is offline send as OIM
        MsnContact c = session.getMessenger().
            getContactList().getContactByEmail(email);

        if(c != null && c.getStatus().equals(MsnUserStatus.OFFLINE))
        {
            logger.warn("Contact is either null or offline cannot send file");
            return null;
        }
View Full Code Here

    }

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnContact contact = session.getMessenger().getContactList()
                .getContactByEmail(getEmail());

        if (contact != null) {
            ((MsnContactImpl) contact).setStatus(MsnUserStatus.OFFLINE);
            ((AbstractMessenger) session.getMessenger())
View Full Code Here

TOP

Related Classes of net.sf.jml.MsnContact

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.