Hi there,
When executing GetFriendsList and you set some flags in ProfileConstraints, the result will not return FriendInfo.Tags, FriendInfo.TitleDisplayName and FriendInfo.Username amongst others but if you leave out the ProfileConstraints it will return these values but ofcourse without the Profile data.
Is this how the API is supposed to work because I cannot confirm this from the documentation? It is a problem though because now I have to issue two GetFriendsList requests to get all the data, one for FriendInfo.Tags and one for Profile data.
To be clear, this code returns FriendInfo.Tags:
PlayFab.ClientModels.GetFriendsListRequest request = new PlayFab.ClientModels.GetFriendsListRequest(); PlayFabClientAPI.GetFriendsList(request, OnGetFriendsListSuccess, OnGetFriendsListFailure);
But this code does not return FriendInfo.Tags:
PlayFab.ClientModels.GetFriendsListRequest request = new PlayFab.ClientModels.GetFriendsListRequest(); request.ProfileConstraints = new PlayFab.ClientModels.PlayerProfileViewConstraints(); request.ProfileConstraints.ShowDisplayName = true; request.ProfileConstraints.ShowStatistics = true; request.ProfileConstraints.ShowTags = true; PlayFabClientAPI.GetFriendsList(request, OnGetFriendsListSuccess, OnGetFriendsListFailure);
Now as far as I understand profile constraints should only affect what is shown in FriendInfo.Profile (my Client Profile Options for Tags, Statistics and Display Name is set by the way)
I even tested and confirmed this with the CALL API functionality on the documentation pages.
So is this correct or am I missing something?
Regards
Pieter