Skip to content

GetGameConfigurationRequest, GetGameConfigurationResponse

mkoengeter edited this page Feb 11, 2014 · 5 revisions

This message pair is being sent when a new user wants to join an existing game. It is used for requesting information about the maximum number of players and rounds as well as the ID of the multiuser chat room (MUC).

IQ from joining player to game service:

 <iq id="mobilis_9" to="[email protected]/MobilisNineCards_v1#1" from="[email protected]/android" type="set">
     <GetGameConfigurationRequest xmlns="http://mobilis.inf.tu-dresden.de/apps/9cards">
     </getgameconfigurationrequest>
 </iq>

IQ from game service to joining player:

 <iq id="mobilis_9" to="[email protected]/android" from="[email protected]/MobilisNineCards_v1#1" type="result">
     <GetGameConfigurationResponse xmlns="http://mobilis.inf.tu-dresden.de/apps/9cards">
         <players>6</players>
         <rounds>9</rounds>
         <muc>mobilisninecards_v1#[email protected]</muc>
     </getgameconfigurationresponse>
 </iq>

Up: Communication Scheme