Meet the team behind ShepHertz Platform
Making a difference in the world together
People whose belief drives us forward
Enterprises & Developers from across the world
Access the ShepHertz Newsroom
800+ APIs. 25+ Modules. 16 SDKs.Real-time Actionable Analytics. 1 Platform.
Acquire. Engage. Retain. Convert.
Comprehensive Solution to Securely Expose Protected Resources as APIs
Real Time & Turn Based MultiplayerGaming Platform With Game Mechanics.
Develop > Deploy > launch > Scale > Monitor
Continuous Integration & Delivery
Customers Want A 360 °Omni-Channel Retail Experience.
Seamless & ConnectedOmni-Channel Experience Delivered.
Plethora of Games are LaunchedEvery Day. Don't Let Yours Die.
Leverage User Data to DeliverPersonalized Content Across Channels
Inspire Wanderlust in theCustomers with Omni-Channel Experience
800+ APIs. 25+ Modules. 16 SDKs. Real-time Actionable Analytics. 1 Platform.
Real Time & Turn Based Multiplayer Gaming Platform With Game Mechanics.
Forum
scoreBoardService.getTopNRankers(WinName, 300, new App42CallBack() {
int nTopSize = 0;
public void onSuccess(Object response)
{
Game game = (Game)response;
nTopSize = game.getScoreList().size();
but nTopSize is 100? max count is 100?
Hi,
In order to answer your query, max size of getTopNRankers is 100. If you need to find records above 100, then you have to use paging method. Please find below code snippet for the same and let me know if it helps:
String gameName = "<Enter_your_game_name>"; int max = 10; scoreBoardService.setPageOffset(0); // Next page your offset will be 11 and so on. Game game = scoreBoardService.getTopNRankers(gameName,max); System.out.println("Game Name is : "+game.getName()); for(int i = 0;i<game.getScoreList().size();i++) { System.out.println("userName is : " + game.getScoreList().get(i).getUserName()); System.out.println("score is : " + game.getScoreList().get(i).getValue()); System.out.println("Created On is :"+game.getScoreList().get(i).getCreatedOn()); System.out.println("scoreId is : " + game.getScoreList().get(i).getScoreId()); }
Regards,
Himanshu Sharma