Package net.sf.jml

Examples of net.sf.jml.MsnSwitchboard


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

        final MsnSwitchboard switchboard = session.getSwitchboard();
        final MsnMessenger messenger = session.getMessenger();
        if (isLoginSuccess()) {
//            log.debug("MSNDEBUG: We have a successful login USR packet!");
            if (isLoginIntoSB()) { //login success to SB
                if (switchboard != null) {
View Full Code Here


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

        MsnSwitchboard switchboard = session.getSwitchboard();
        if (switchboard != null) {
            MsnMessenger messenger = session.getMessenger();
            MsnContactImpl contact = (MsnContactImpl) messenger
                    .getContactList().getContactByEmail(getEmail());
            if (contact == null) {
                contact = new MsnContactImpl(messenger.getContactList());
                contact.setEmail(getEmail());
            }

            ((AbstractSwitchboard) switchboard).removeContact(contact);
            ((AbstractMessenger) messenger).fireContactLeaveSwitchboard(
                    switchboard, contact);

            if (switchboard.getAllContacts().length == 0) {
                switchboard.close();
            }
        }

    }
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());
View Full Code Here

    }

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnSwitchboard switchboard = session.getSwitchboard();
        if (switchboard != null) {
            ((AbstractMessenger) session.getMessenger())
                    .fireSwitchboardStarted(switchboard);
        }
    }
View Full Code Here

    }

    @Override
  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());
View Full Code Here

        {
            logger.warn("Contact is either null or offline cannot send file");
            return null;
        }

        MsnSwitchboard switchboard = null;
        MsnSwitchboard[] switchboards = session.getMessenger().getActiveSwitchboards();
        for (MsnSwitchboard switchboard1 : switchboards)
        {
            if (switchboard1.containContact(email)
                    && switchboard1.getAllContacts().length == 1)
View Full Code Here

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

        final MsnSwitchboard switchboard = session.getSwitchboard();
        final MsnMessenger messenger = session.getMessenger();
        if (isLoginSuccess()) {
//            log.debug("MSNDEBUG: We have a successful login USR packet!");
            if (isLoginIntoSB()) { //login success to SB
                if (switchboard != null) {
View Full Code Here

TOP

Related Classes of net.sf.jml.MsnSwitchboard

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.