Export (0) Print
Expand All

4.3 SMS Message Added by the Server

The following is an example of an SMS item being added by the server to the client. Note that the SMS class data is included within the ApplicationData element, whereas the class of the item is specified by the Class element in the Add element.

Server's Sync command response:

 <?xml version="1.0" encoding="utf-8"?>
 <Sync xmlns="AirSync:" xmlns:airsyncbase="AirSyncBase:" xmlns:email="Email:" xmlns:email2="Email2:" >
   <Collections>
     <Collection>
       <SyncKey>525665452</SyncKey>
       <CollectionId>55</CollectionId>
       <Status>1</Status>
       <Commands>
         <Add>
           <Class>SMS</Class>
           <ServerId>55:11</ServerId>
           <ApplicationData>
             <email:To>"14255550143" [MOBILE:14255550143]</email:To>
             <email:From>"+14255550123" [MOBILE:+14255550123]</email:From>
             <email:DateReceived>2009-01-08T00:14:36.000Z</email:DateReceived>
             <email:Importance>1</email:Importance>
             <email:Read>0</email:Read>
             <airsyncbase:Body>
               <airsyncbase:Type>1</airsyncbase:Type>
               <airsyncbase:EstimatedDataSize>29</airsyncbase:EstimatedDataSize>
               <airsyncbase:Data>Make sure you get some rest!
 </airsyncbase:Data>
             </airsyncbase:Body>
             <email:InternetCPID>1252</email:InternetCPID>
             <email:Flag/>
             <email2:ConversationId>ñòaöÏMDÿ‹döX3&#xF;0&#x0;</email2:ConversationId>
             <email2:ConversationIndex>Éq&amp;HÞ</email2:ConversationIndex>
           </ApplicationData>
         </Add>
       </Commands>
     </Collection>
   </Collections>
 </Sync>
Show:
© 2016 Microsoft