public class Messenger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
CONVERSATION_TYPE_AUDIO |
(package private) static int |
CONVERSATION_TYPE_IM |
(package private) static int |
CONVERSATION_TYPE_LIVEMEETING |
(package private) static int |
CONVERSATION_TYPE_PHONE |
(package private) static int |
CONVERSATION_TYPE_PSTN |
(package private) static int |
CONVERSATION_TYPE_VIDEO |
(package private) static int |
MISTATUS_AWAY |
(package private) static int |
MISTATUS_IN_A_MEETING |
(package private) static int |
MISTATUS_MAY_BE_AVAILABLE |
(package private) static int |
MISTATUS_OFFLINE |
(package private) static int |
MISTATUS_ON_THE_PHONE
The MISTATUS value which indicates that the local or remote
client user is on the phone.
|
(package private) static int |
MISTATUS_ONLINE |
(package private) static int |
MISTATUS_UNKNOWN |
(package private) static int |
MPHONE_TYPE_CUSTOM |
(package private) static int |
MPHONE_TYPE_HOME
The MPHONE_TYPE value which indicates a home phone number.
|
(package private) static int |
MPHONE_TYPE_MOBILE
The MPHONE_TYPE value which indicates a mobile phone number.
|
(package private) static int |
MPHONE_TYPE_WORK
The MPHONE_TYPE value which indicates a work phone number.
|
Constructor and Description |
---|
Messenger()
Initializes a new Messenger instance which is to represent the
Java counterpart of a native IMessenger implementation.
|
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
getPhoneNumber(MessengerContact messengerContact,
int type)
Gets the phone number information of the contact associated with a
specific MessengerContact instance.
|
(package private) static int |
getStatus(MessengerContact messengerContact)
Gets the connection/presence status of the contact associated with a
specific MessengerContact instance in the form of a
MISTATUS value.
|
(package private) static boolean |
isSelf(MessengerContact messengerContact)
Gets the indicator which determines whether a specific
MessengerContact is the same user as the current client user.
|
(package private) static void |
start(org.osgi.framework.BundleContext bundleContext)
Starts the Messenger class and instance functionality in a
specific BundleContext.
|
void |
startConversation(int conversationType,
java.lang.String[] participants,
java.lang.String conversationData)
Starts a conversation with one or more other users using text, voice,
video, or data.
|
(package private) static void |
stop(org.osgi.framework.BundleContext bundleContext)
Stops the Messenger class and instance functionality in a
specific BundleContext.
|
static final int CONVERSATION_TYPE_AUDIO
static final int CONVERSATION_TYPE_IM
static final int CONVERSATION_TYPE_LIVEMEETING
static final int CONVERSATION_TYPE_PHONE
static final int CONVERSATION_TYPE_PSTN
static final int CONVERSATION_TYPE_VIDEO
static final int MISTATUS_AWAY
static final int MISTATUS_MAY_BE_AVAILABLE
static final int MISTATUS_OFFLINE
static final int MISTATUS_ON_THE_PHONE
static final int MISTATUS_IN_A_MEETING
static final int MISTATUS_ONLINE
static final int MISTATUS_UNKNOWN
static final int MPHONE_TYPE_CUSTOM
static final int MPHONE_TYPE_HOME
static final int MPHONE_TYPE_MOBILE
static final int MPHONE_TYPE_WORK
public Messenger()
static java.lang.String getPhoneNumber(MessengerContact messengerContact, int type)
messengerContact
- a MessengerContact instance which
specifies the contact for which the phone number information is to be
retrievedtype
- member of the MPHONE_TYPE enumerated type which
specifies the type of the phone number information to be retrievedstatic int getStatus(MessengerContact messengerContact)
messengerContact
- a MessengerContact instance which
specifies the contact for which the connection/presence status is to be
retrievedstatic boolean isSelf(MessengerContact messengerContact)
messengerContact
- the MessengerContact which is to be
determined whether it is the same user as the current client userstatic void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
bundleContext
- the BundleContext in which the
Messenger class and instance functionality is to be startedjava.lang.Exception
- if anything goes wrong while starting the
Messenger class and instance functionality in the specified
BundleContextstatic void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
bundleContext
- the BundleContext in which the
Messenger class and instance functionality is to be stoppedjava.lang.Exception
- if anything goes wrong while stopping the
Messenger class and instance functionality in the specified
BundleContextpublic void startConversation(int conversationType, java.lang.String[] participants, java.lang.String conversationData)
conversationType
- a CONVERSATION_TYPE value specifying the
type of the conversation to be startedparticipants
- an array of String values specifying the
other users to start a conversation withconversationData
- an XML BLOB specifying the phone numbers to be
dialed in order to start the conversation
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.