java.lang.Objectwebphone.SIPNotification
webphone.SIPNotification.Presence
public static class SIPNotification.Presence
PRESENCE notification.
Triggered by: presence changes (peers online status)
Event: SIPNotificationListener.onPresence
Fields: PRESENCE,peername,state,details,displayname,email
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
static int |
PRESENCE_AWAY
idle |
static int |
PRESENCE_BUSY
in call |
static int |
PRESENCE_DISABLED
disabled |
static int |
PRESENCE_DND
do not disturb |
static int |
PRESENCE_INVISIBLE
invisible |
static int |
PRESENCE_OFFLINE
closed |
static int |
PRESENCE_ONLINE
available |
static int |
PRESENCE_PENDING
new user |
static int |
PRESENCE_UNKNOWN
other |
| Method Summary | |
|---|---|
java.lang.String |
getDetails()
presence details if any |
java.lang.String |
getEmail()
peer email if any |
java.lang.String |
getPeer()
peer username |
java.lang.String |
getPeerDisplayname()
peer displayname if any |
int |
getStatus()
returns the presence state (PRESENCE_... |
java.lang.String |
getStatusText()
presence state as string |
static int |
StringToPresence(java.lang.String statustext,
java.lang.String details)
|
| Methods inherited from class webphone.SIPNotification |
|---|
getNotificationType, getNotificationTypeText, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PRESENCE_UNKNOWN
public static final int PRESENCE_OFFLINE
public static final int PRESENCE_DND
public static final int PRESENCE_AWAY
public static final int PRESENCE_BUSY
public static final int PRESENCE_ONLINE
public static final int PRESENCE_PENDING
public static final int PRESENCE_INVISIBLE
public static final int PRESENCE_DISABLED
| Method Detail |
|---|
public int getStatus()
public java.lang.String getStatusText()
public java.lang.String getDetails()
public java.lang.String getPeer()
public java.lang.String getPeerDisplayname()
public java.lang.String getEmail()
public static int StringToPresence(java.lang.String statustext,
java.lang.String details)