custom code error int size = games.size();

0 votes
Hi,
 
GameService gameService = sp.buildGameService();
 
// 200 max create game
game = gameService.createGame( "testgame", "des: " + "testgame" );
 
List<Game> games = gameService.getAllGames();
 
// 100 size
// Why?
int size = games.size();
 
Import games count?
App42Response app42Response gameService.getAllGamesCount ();
Please tell us the examples.
 
Thank you.

 

asked Jan 22, 2016 in Java by airfighter.pilot (10 points)
edited Jan 22, 2016 by airfighter.pilot

1 Answer

0 votes

Hello Pilot,

Get All game function will only return 100 records in one go, but if you have to find more then 100 records then you have to call pagin method. Using getAllGamesByPagin method, you can find records in chunk of 100. 

Please have a look at this link for the code snippet and let us know if it helps.

P.S We have a cap of 200 games per app, if you want to increase this limit. Please contact us at sales@shephertz.com. 

regards,

Himanshu Sharma

answered Jan 22, 2016 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...