Share via


selfPresence Event

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Represents the envelope for receiving the logged-on user presence categories.

Syntax

<selfPresence eid="1344"></selfPresence>

The following sections describe attributes, parent elements, and child elements.

Attributes

Attribute

Data Type

Description

eid

integer

Event Id. This is an integer value assigned by the Communicator Web Access Server.

Element Information

Parent Element

Element

Description

cwaEvents

Holds the responses from the asynchronous data channel with which a Unified Communications AJAX API Client polls the server for updates that have taken place.

Child Element

Element

Occurrence

Description

cwaCategory

1 or more

The category data of this user.

Remarks

This envelope is sent to the Unified Communications AJAX API Client application at logon time or when a user changes her own presence data. In that case, the entire envelope is resent to the client asynchronously.

Examples

This is Jay Adams complete user presence contact card. A contact with a private presence level sees all information Jay chooses to publish. Presence levels with lower ids see lesser subsets of this data. The exception is container id 32000 (Blocked). This container sees only the e-mail address and display name of Jay.

<selfPresence eid="2">
   <cwaCategory name="contactCard" instanceMask="0">
   <contactCard xmlns=".../contactcard">
      <identity>
         <name>
            <displayName>jay A</displayName>
         </name>
      </identity>
   </contactCard>
</cwaCategory>
<cwaCategory name="contactCard" instanceMask="1">
   <contactCard xmlns=".../contactcard">
      <phone type="work">
         <uri>tel:</uri>
         <displayString></displayString>
      </phone>
      <phone type="mobile">
         <uri>tel:</uri>
         <displayString></displayString>
      </phone>
    </contactCard>
</cwaCategory>
<cwaCategory name="contactCard" instanceMask="3">
   <contactCard xmlns="...contactcard">
      <company></company>
      <title></title>
      <office></office>
   </contactCard>
</cwaCategory>
<cwaCategory name="note" instanceMask="0">
   <note xmlns=".../note">
      <body type="personal">Jay is out golfing today</body>
   </note>
</cwaCategory>
<cwaCategory name="state" instanceMask="0">
   <state xsi:type="aggregateState" lastActive="..."         xmlns:xsi="..." xmlns="...">
   <availability>18000</availability>
   </state>
</cwaCategory>
<cwaCategory name="alerts" instanceMask="0">
   <alerts xmlns="..." notifyAdditionToContactList="true"
      alertsForIncomingConversation="true" ...>
   </alerts>
</cwaCategory>
<cwaCategory name="otherOptions" instanceMask="0">
   <otherOptions xmlns="...">
     <permissions blockConversationFromExternalContacts="true">
     </permissions>
   </otherOptions>
</cwaCategory>
<cwaCategory name="userInformation" instanceMask="0">
   <userInformation xmlns="...">
      <phones>
         <phone type="work">
            <uri>tel:</uri>
            <displayString></displayString>
            <publish>true</publish>
            <readOnly>false</readOnly>
         </phone>
         <phone type="mobile"><uri>tel:4065551212</uri>
            <displayString></displayString>
            <publish>true</publish>
            <readOnly>false</readOnly>
         </phone>
         <phone type="home">
            <uri>tel:</uri>
            <displayString></displayString>
            <publish>false</publish>
            <readOnly>false</readOnly>
         </phone>
         <phone type="other">
         <uri>tel:</uri>
         <displayString></displayString>
         <publish>false</publish>
          <readOnly>false</readOnly>
       </phone>
   </phones>
</userInformation>
</cwaCategory>
</selfPresence>

See Also

Concepts

cwaCategory Element

container Element

initiateSession Element