I often use client and server API GetUserData, GetUserReadOnlyData and GetUserInternalData. Does it make a difference in calculating the costs if I call these APIs without specifying keys?
For example, the player has 50 key/value pairs saved in Player Title Data read only. Then the player calls client or server API GetUserReadOnlyData to get only one single key/value pair:
private async Task GetUserReadOnlyData() { var result = await PlayFabClientAPI.GetUserReadOnlyDataAsync(new PlayFab.ClientModels.GetUserDataRequest() { PlayFabId = PlayerPlayFabID }); if (result.Error != null) { // Handle error if any } else { if (result.Result.Data == null || !result.Result.Data.ContainsKey("Country")) Console.WriteLine("No Country"); else { if (result.Result.Data.ContainsKey("Country")) Console.WriteLine("Country: " + result.Result.Data["Country"].Value); } } }
Does it matter if I call:
var result = await PlayFabClientAPI.GetUserReadOnlyDataAsync(new PlayFab.ClientModels.GetUserDataRequest() { PlayFabId = PlayerPlayFabID });
or:
var result = await PlayFabClientAPI.GetUserReadOnlyDataAsync(new PlayFab.ClientModels.GetUserDataRequest() { PlayFabId = PlayerPlayFabID Keys = new List<string> { "Country" } });
Will I have more costs if I call GetUserReadOnlyData without specifying the key?