Closed Tvde1 closed 7 years ago
Thanks for the report. I'll check this out today/tomorrow.
I wrote this particular enum many years ago and now I can't remember why I made the FriendsOnly option as 8
. I assume that I had a good reason, but now that I'm testing, I don't even see that as a valid value.
I'm also having trouble testing my own profile by changing the privacy settings to see what option maps to what number. I think it's like this:
Private = 1
FriendsOnly = 2
Public = 3
But when I change the option in my profile, the API returns the same number as before. I'm confused!
I had never gotten such a result. Maybe my previous methods had something else in the default case. But I only seem to get it with this guy.
Secret Valve employee confirmed?
I've updated the enum to have "FriendsOnly" as "2".
I'm still not sure why changing my profile privacy settings doesn't affect the output I receive from GetPlayerSummary.
So I'm checking if a player has a public profile, and I made this method:
It returns my enum which is this:
And the enum returned by PlayerSummaryModel.ProfileVisibility is:
Only PlayerSummaryModel.ProfileVisibility is returning 2 for me. And thus generating an ArgumentOutOfRangeException. I've tried with the steam id "
76561198014386060
" (private profile).