GameId needs to be an *int in AjaxResponse for Go, just like LongPollResponse.
This commit is contained in:
parent
dcb9553837
commit
3cb0e554fb
|
@ -257,8 +257,12 @@ public class Constants {
|
||||||
@GoDataType("bool")
|
@GoDataType("bool")
|
||||||
ERROR("e"),
|
ERROR("e"),
|
||||||
ERROR_CODE("ec"),
|
ERROR_CODE("ec"),
|
||||||
|
// This is explicitly a pointer to the value, and not just the value. We need to be able to tell
|
||||||
|
// the difference between game 0, and lack of game id.
|
||||||
|
// This could be done with an explicit unmarshaller for the type, and a sentinel value, but that
|
||||||
|
// would require significantly more work on the code generation.
|
||||||
@DuplicationAllowed
|
@DuplicationAllowed
|
||||||
@GoDataType("int")
|
@GoDataType("*int")
|
||||||
GAME_ID(AjaxRequest.GAME_ID),
|
GAME_ID(AjaxRequest.GAME_ID),
|
||||||
@GoDataType("GameInfo")
|
@GoDataType("GameInfo")
|
||||||
GAME_INFO("gi"),
|
GAME_INFO("gi"),
|
||||||
|
|
Loading…
Reference in New Issue