net.rim.blackberry.api.blackberrymessenger
Interface MessengerContact


public interface MessengerContact

Represents a BlackBerry Messenger contact in the user's BlackBerry Messenger contact list.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

Method Summary
Category: Signed  BlackBerryContact getBlackBerryContact()
          Gets the BlackBerryContact (if it exists) for this contact
Category: Signed  int getContactId()
          Unique ID for this contact.
Category: Signed  String getDisplayName()
          Display name for the contact which appears in the BlackBerry Messenger contact list.
Category: Signed  Session getSession()
          Returns a new, closed Session to be used for communication with this contact.
 



Method Detail

getContactId

int getContactId()
Unique ID for this contact.

Returns:
id
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getDisplayName

String getDisplayName()
Display name for the contact which appears in the BlackBerry Messenger contact list.

Returns:
The display name of the contact.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getBlackBerryContact

BlackBerryContact getBlackBerryContact()
Gets the BlackBerryContact (if it exists) for this contact

Returns:
A BlackBerryContact representing the MessengerContact, or null.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getSession

Session getSession()
Returns a new, closed Session to be used for communication with this contact.

Returns:
A Session object that once opened can be used for communication with this contact.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.