-
Notifications
You must be signed in to change notification settings - Fork 2
PlayCardMessage, CardPlayedMessage
mkoengeter edited this page Feb 11, 2014
·
3 revisions
This message pair is being sent when a user chooses a card. The PlayCardMessage is sent as a private chat message and contains the round and the ID of the card which shall be used. The CardPlayedMessage is broadcasted using the multiuser chat room, it notifies all players that a user made his choice.
Private message from player to game service:
<message id="Po135-8" to="[email protected]/MobilisNineCards_v1#1" from="[email protected]/android" type="chat"> <body> <PlayCardMessage xmlns="http://mobilis.inf.tu-dresden.de/apps/9cards"> <round>1</round> <card>8</card> </playcardmessage> </body> </message>
Public message from game service to all players:
<message id="WCCf1-60" to="mobilisninecards_v1#[email protected]" type="groupchat"> <body> <CardPlayedMessage xmlns="http://mobilis.inf.tu-dresden.de/apps/9cards"> <round>1</round> <player>mobilisninecards_v1#[email protected]/Herbert</player> </cardplayedmessage> </body> </message>