Package net.rim.blackberry.api.bbm.platform.profile

Examples of net.rim.blackberry.api.bbm.platform.profile.UserProfile


        }
        return instance;
    }
   
    public Object getField(String name) throws Exception {
        final UserProfile userProfile = BBMPlatformNamespace.getInstance().getContext().getUserProfile();
        super._presence = userProfile;
       
        if(name.equals(LocationNamespace.NAME)) {
            ProfileLocation location = userProfile.getProfileLocation();
            if(location == null) {
                return UNDEFINED;
            } else {
                return new LocationNamespace(location);
            }
View Full Code Here


        final String handle;
        if(presence instanceof BBMPlatformContact) {
            final BBMPlatformContact contact = (BBMPlatformContact) presence;
            handle = contact.getHandle();
        } else if(presence instanceof UserProfile) {
            final UserProfile currentUser = (UserProfile) presence;
            handle = currentUser.getHandle();
        } else {
            handle = null;
        }
        return handle;
    }
View Full Code Here

        final String ppid;
        if(presence instanceof BBMPlatformContact) {
            final BBMPlatformContact contact = (BBMPlatformContact) presence;
            ppid = contact.getPPID();
        } else if(presence instanceof UserProfile) {
            final UserProfile currentUser = (UserProfile) presence;
            ppid = currentUser.getPPID();
        } else {
            ppid = null;
        }
        return ppid;
    }
View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.bbm.platform.profile.UserProfile

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.