January 28, 2009

This is the raw message we receive from an onJoinRoom event sent from SmartFox Server with our custom room variables, the libs will parse this up for us, which is pretty decent and helpful.

<msg t='sys'>
  <body action='joinOK' r='3'>
    <pid id='-1'/>
    <vars>
      <var n='suit0' t='s'>
        <![CDATA[h]]>
      </var>
      <var n='currentRank' t='n'>
        <![CDATA[3]]>
      </var>
      <var n='user_cards_count' t='n'>
        <![CDATA[1]]>
      </var>
      <var n='usersExchanged' t='n'>
        <![CDATA[2]]>
      </var>
      <var n='playerRanked' t='n'>
        <![CDATA[0]]>
      </var>
      <var n='numRounds' t='n'>
        <![CDATA[2]]>
      </var>
      <var n='userTurn' t='n'>
        <![CDATA[2]]>
      </var>
      <var n='last_player_played' t='n'>
        <![CDATA[3]]>
      </var>
      <var n='dealer_id' t='n'>
        <![CDATA[2]]>
      </var>
      <var n='user_face_value' t='n'>
        <![CDATA[13]]>
      </var>
      <var n='inGame' t='b'>
        <![CDATA[1]]>
      </var>
      <var n='exchange' t='b'>
        <![CDATA[0]]>
      </var>
    </vars>
    <uLs r='3'>
      <u i='1626' m='0' s='0' p='4'>
        <n>
          <![CDATA[666580371]]>
        </n>
        <vars>
          <var n='rank' t='s'>
            <![CDATA[President]]>
          </var>
          <var n='fb_uid' t='n'>
            <![CDATA[666580371]]>
          </var>
          <var n='card_count' t='n'>
            <![CDATA[0]]>
          </var>
          <var n='screen_name' t='s'>
            <![CDATA[Taylor *]]>
          </var>
          <var n='ready' t='b'>
            <![CDATA[1]]>
          </var>
          <var n='pic_url' t='s'>
            <![CDATA[http://profile.ak.facebook.com/v222/795/44/q666580371_719.jpg]]>
          </var>
          <var n='chipTotal' t='n'>
            <![CDATA[10229]]>
          </var>
          <var n='chipsEarned' t='n'>
            <![CDATA[349]]>
          </var>
        </vars>
      </u>
      <u i='1621' m='0' s='0' p='2'>
        <n>
          <![CDATA[1607303638]]>
        </n>
        <vars>
          <var n='rank' t='s'>
            <![CDATA[unranked]]>
          </var>
          <var n='fb_uid' t='n'>
            <![CDATA[1607303638]]>
          </var>
          <var n='card_count' t='n'>
            <![CDATA[4]]>
          </var>
          <var n='screen_name' t='s'>
            <![CDATA[Mike]]>
          </var>
          <var n='ready' t='b'>
            <![CDATA[0]]>
          </var>
          <var n='pic_url' t='s'>
            <![CDATA[http://profile.ak.facebook.com/v229/1007/83/q1607303638_6612.jpg]]>
          </var>
          <var n='chipTotal' t='n'>
            <![CDATA[4590]]>
          </var>
          <var n='chipsEarned' t='n'>
            <![CDATA[0]]>
          </var>
        </vars>
      </u>
      <u i='1622' m='0' s='0' p='3'>
        <n>
          <![CDATA[616006432]]>
        </n>
        <vars>
          <var n='rank' t='s'>
            <![CDATA[unranked]]>
          </var>
          <var n='fb_uid' t='n'>
            <![CDATA[616006432]]>
          </var>
          <var n='card_count' t='n'>
            <![CDATA[1]]>
          </var>
          <var n='screen_name' t='s'>
            <![CDATA[Lynn1204]]>
          </var>
          <var n='ready' t='b'>
            <![CDATA[0]]>
          </var>
          <var n='chipTotal' t='n'>
            <![CDATA[4854]]>
          </var>
          <var n='pic_url' t='s'>
            <![CDATA[http://profile.ak.facebook.com/v223/1303/36/q616006432_2358.jpg]]>
          </var>
          <var n='chipsEarned' t='n'>
            <![CDATA[0]]>
          </var>
        </vars>
      </u>
      <u i='1613' m='0' s='0' p='1'>
        <n>
          <![CDATA[1112396589]]>
        </n>
        <vars>
          <var n='rank' t='s'>
            <![CDATA[Vice President]]>
          </var>
          <var n='fb_uid' t='n'>
            <![CDATA[1112396589]]>
          </var>
          <var n='card_count' t='n'>
            <![CDATA[0]]>
          </var>
          <var n='screen_name' t='s'>
            <![CDATA[Sheldon 917]]>
          </var>
          <var n='ready' t='b'>
            <![CDATA[1]]>
          </var>
          <var n='pic_url' t='s'>
            <![CDATA[http://profile.ak.facebook.com/v230/1144/60/q1112396589_520.jpg]]>
          </var>
          <var n='chipTotal' t='n'>
            <![CDATA[1737]]>
          </var>
          <var n='chipsEarned' t='n'>
            <![CDATA[149]]>
          </var>
        </vars>
      </u>
      <u i='1631' m='0' s='1' p='-1'>
        <n>
          <![CDATA[Spectator886]]>
        </n>
        <vars>
          <var n='rank' t='s'>
            <![CDATA[unranked]]>
          </var>
          <var n='fb_uid' t='n'>
            <![CDATA[0]]>
          </var>
          <var n='card_count' t='n'>
            <![CDATA[0]]>
          </var>
          <var n='screen_name' t='s'>
            <![CDATA[Spectator886]]>
          </var>
          <var n='ready' t='b'>
            <![CDATA[0]]>
          </var>
          <var n='chipTotal' t='n'>
            <![CDATA[0]]>
          </var>
          <var n='pic_url' t='s'>
            <![CDATA[http://london-ontario.com/play_president/assets/table/default/spectator.png]]>
          </var>
        </vars>
      </u>
    </uLs>
  </body>
</msg>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: