CardService

URL: http://landgrab.net/landgrab/services/CardService
WSDL: http://landgrab.net/landgrab/services/CardService?wsdl

The CardService has methods for working with cards in a given game.

Methods

getCardsForUser(sessionKey, gameNumber, includeTeammates)

Arguments:
sessionKey (xsd:string) The session key obtained from the initiateSession call
gameNumber (xsd:int) The game number
includeTeammates (xsd:boolean) Whether or not to include teammates cards

Returns
: an array of CardSoapBean objects

This method returns all cards that the authenticated user currently holds. If the includeTeammates boolean is true and the game is a team game and the "view teammate cards" option is enabled for the game, any teammate-owned cards will also be returned.


getNumCardsForUser(sessionKey, gameNumber, playerCode)

Arguments:
sessionKey (xsd:string) The session key obtained from the initiateSession call
gameNumber (xsd:int) The game number
playerCode (xsd:int) The player code to check

Returns: An integer of how many cards the given player currently owns

This method will return the number of cards the player (playerCode argument) currently owns. If the player isn't in the game, 0 is returned.