Package blackberry.bbm.platform.io

Examples of blackberry.bbm.platform.io.MessagingServiceListenerImpl


            final String comment =                           (String) args[1];
            final ScriptableFunction onFailure = (ScriptableFunction) args[2];
           
            final BBMPlatformNamespace bbmpNpsc = BBMPlatformNamespace.getInstance();
            final MessagingService msgService = bbmpNpsc.getMessagingService();
            final MessagingServiceListenerImpl msgServiceListener = bbmpNpsc.getMessagingServiceListener();
           
            if(args.length == 3) {
                msgServiceListener.setOnFileTransferFailed(onFailure);
                msgService.sendFile(fileURI, comment);
            } else if(args.length == 4) {
                BBMPlatformUser scriptContact = ((BBMPlatformUser) args[3]);
                BBMPlatformContact contact = (BBMPlatformContact) scriptContact.getPresence();
               
                msgServiceListener.setOnFileTransferFailed(onFailure);
                msgService.sendFile(contact, fileURI, comment);
            }
           
            return UNDEFINED;
        }
View Full Code Here


        return _instance;
    }
   
    public void initBBMPlatformObjects() {
        _msgService = _bbmpContext.getMessagingService();
        _msgServiceListener = new MessagingServiceListenerImpl(IONamespace.getInstance());
        _msgService.setServiceListener(_msgServiceListener);
        UsersNamespace.getInstance().init();
        _profileBox = _bbmpContext.getUserProfile().getProfileBox();
    }
View Full Code Here

TOP

Related Classes of blackberry.bbm.platform.io.MessagingServiceListenerImpl

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.