webphone
Class SIPNotification.Presence

java.lang.Object
  extended by webphone.SIPNotification
      extended by webphone.SIPNotification.Presence
Enclosing class:
SIPNotification

public static class SIPNotification.Presence
extends SIPNotification

PRESENCE notification.
Triggered by: presence changes (peers online status)
Event: SIPNotificationListener.onPresence
Fields: PRESENCE,peername,state,details,displayname,email


Field Summary
static intPRESENCE_AWAY
          idle
static intPRESENCE_BUSY
          in call
static intPRESENCE_DND
          do not disturb
static intPRESENCE_OFFLINE
          closed
static intPRESENCE_ONLINE
          available
static intPRESENCE_PENDING
          new user
static intPRESENCE_UNKNOWN
          other
 
Method Summary
 java.lang.StringgetDetails()
          presence details if any
 java.lang.StringgetEmail()
          peer email if any
 java.lang.StringgetPeer()
          peer username
 java.lang.StringgetPeerDisplayname()
          peer displayname if any
 intgetStatus()
          returns the presence state (PRESENCE_...
 java.lang.StringgetStatusText()
          presence state as string
 
Methods inherited from class webphone.SIPNotification
getNotificationType, toString
  

Field Detail

PRESENCE_UNKNOWN

public static final int PRESENCE_UNKNOWN
other

See Also:
Constant Field Values

PRESENCE_OFFLINE

public static final int PRESENCE_OFFLINE
closed

See Also:
Constant Field Values

PRESENCE_DND

public static final int PRESENCE_DND
do not disturb

See Also:
Constant Field Values

PRESENCE_AWAY

public static final int PRESENCE_AWAY
idle

See Also:
Constant Field Values

PRESENCE_BUSY

public static final int PRESENCE_BUSY
in call

See Also:
Constant Field Values

PRESENCE_ONLINE

public static final int PRESENCE_ONLINE
available

See Also:
Constant Field Values

PRESENCE_PENDING

public static final int PRESENCE_PENDING
new user

See Also:
Constant Field Values
 
Method Detail

getStatus

public int getStatus()
returns the presence state (PRESENCE_... constant


getStatusText

public java.lang.String getStatusText()
presence state as string


getDetails

public java.lang.String getDetails()
presence details if any


getPeer

public java.lang.String getPeer()
peer username


getPeerDisplayname

public java.lang.String getPeerDisplayname()
peer displayname if any


getEmail

public java.lang.String getEmail()
peer email if any