question

Talha Muhammad avatar image
Talha Muhammad asked

Returning Data on Login

If I call LoginWithAndroidID and in the InfoRequestParameters if i enable "Inventory", "Profile", and "Statistic" (we have only one statistic in our game). Will that amount to 4 read operations?

Each for Additional Information requested? Or will it be 1 read operation? Plus. Does enabling "GetUserInventory" parameter give back the VC aswell? or do we need to enable GetUserVirtualCurrency aswell to get VCs?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

As with all the Profile Read API calls (Profile Reads Meter API Description - PlayFab | Microsoft Docs), the total spin of the meter is based on the total size of the data returned. So, take the total of all data returned in the body of the response, divide by 1,000, and round up. That would be the meter spin for that API call.

GetUserInventory returns the user's inventory. You would need to additionally specify GetUserVirtualCurrency if you want to get the user's VC balances back, as well.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Talha Muhammad avatar image Talha Muhammad commented ·

Okay. One last thing.

specific to inventory.

Player plays the game and accumulates items over time. Now each time the items are increasing.

Now comes a stage where the total items in the inventory is 50. Would that be 50 read calls(meter ticks) in that case? if the total size returned of call is 50kb.

0 Likes 0 ·
brendan avatar image brendan Talha Muhammad commented ·

Again, Profile Read calls spin the meter based on the total KB in the returned data. So if your total returned data is 50 KB, that would be 50 "ticks" of that meter, yes.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.