Package edu.wisc.game.rest
Class PlayerResponse
java.lang.Object
edu.wisc.game.rest.ResponseBase
edu.wisc.game.rest.PlayerResponse
public class PlayerResponse extends ResponseBase
The object returned by the /player call. This is the call that's
used at the beginning (or resumption) of a series, to create
a new player entry in the database or find an existing one.
-
Method Summary
Modifier and Type Method Description booleangetAlreadyFinished()True if this player has finished all episodes he could play.StringgetCompletionCode()StringgetExperimentPlan()booleangetNewlyRegistered()StringgetPlayerId()PlayerInfogetPlayerInfo()TrialListgetTrialList()StringgetTrialListId()static voidmain(String[] argv)Handy testingvoidsetPlayerId(String _playerId)
-
Method Details
-
getNewlyRegistered
public boolean getNewlyRegistered() -
getTrialListId
-
getTrialList
-
getPlayerId
-
setPlayerId
-
getPlayerInfo
-
getAlreadyFinished
public boolean getAlreadyFinished()True if this player has finished all episodes he could play. This means that the most recent episode has been completed, and no more new episodes can be created. -
getCompletionCode
-
getExperimentPlan
-
main
Handy testing- Throws:
Exception
-