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


Nested Class Summary
 
Nested classes/interfaces inherited from class webphone.SIPNotification
SIPNotification.Account, SIPNotification.AI, SIPNotification.Answer, SIPNotification.APIResult, SIPNotification.BLF, SIPNotification.Block, SIPNotification.CDR, SIPNotification.Chat, SIPNotification.ChatComposing, SIPNotification.ChatReport, SIPNotification.Credit, SIPNotification.DTMF, SIPNotification.Event, SIPNotification.Group, SIPNotification.INFO, SIPNotification.LicKey, SIPNotification.Line, SIPNotification.Log, SIPNotification.Media, SIPNotification.MWI, SIPNotification.NewContact, SIPNotification.PlayReady, SIPNotification.Popup, SIPNotification.Presence, SIPNotification.Rating, SIPNotification.Register, SIPNotification.RTPE, SIPNotification.RTPStat, SIPNotification.RTPT, SIPNotification.ServerContacts, SIPNotification.ShouldReset, SIPNotification.SIP, SIPNotification.SRS, SIPNotification.Start, SIPNotification.Status, SIPNotification.Stop, SIPNotification.USSD, SIPNotification.VAD, SIPNotification.Video, SIPNotification.Vrec
 
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
 
Fields inherited from class webphone.SIPNotification
NOTIFICATION_ACCOUNT, NOTIFICATION_AI, NOTIFICATION_ALL, NOTIFICATION_ANSWER, NOTIFICATION_APIRESULT, NOTIFICATION_BLF, NOTIFICATION_BLOCK, NOTIFICATION_CDR, NOTIFICATION_CHAT, NOTIFICATION_CHATCOMPOSING, NOTIFICATION_CHATREPORT, NOTIFICATION_CREDIT, NOTIFICATION_DTMF, NOTIFICATION_EVENT, NOTIFICATION_GROUP, NOTIFICATION_INFO, NOTIFICATION_INVALID, NOTIFICATION_LICKEY, NOTIFICATION_LINE, NOTIFICATION_LOG, NOTIFICATION_MEDIA, NOTIFICATION_MWI, NOTIFICATION_NEWUSER, NOTIFICATION_PLAYREADY, NOTIFICATION_POPUP, NOTIFICATION_PRESENCE, NOTIFICATION_RATING, NOTIFICATION_REGISTER, NOTIFICATION_RTPE, NOTIFICATION_RTPSTAT, NOTIFICATION_RTPT, NOTIFICATION_SERVERCONTACTS, NOTIFICATION_SHOULDRESET, NOTIFICATION_SIP, NOTIFICATION_SRS, NOTIFICATION_START, NOTIFICATION_STATUS, NOTIFICATION_STOP, NOTIFICATION_USSD, NOTIFICATION_VAD, NOTIFICATION_VIDEO, NOTIFICATION_VREC
 
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

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

PRESENCE_INVISIBLE

public static final int PRESENCE_INVISIBLE
invisible

See Also:
Constant Field Values

PRESENCE_DISABLED

public static final int PRESENCE_DISABLED
disabled

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


StringToPresence

public static int StringToPresence(java.lang.String statustext,
                                   java.lang.String details)