psn-php icon indicating copy to clipboard operation
psn-php copied to clipboard

User profile fix

Open gabetavares opened this issue 2 years ago • 1 comments

Languages

The languages were using the property languagesUsed to pluck the languages, just a change for the new property value of languages solves the problem.

Deprecated methods

The call to endpoint 'userProfile/v1/internal/users/[accountId]/profiles' gives the response of

{
   "onlineId": "Username",
   "aboutMe": "",
   "avatars": [],
   "languages": [],
   "isPlus": true,
   "isOfficiallyVerified": false,
   "isMe": false
}

So these methods seems to be deprecated in this version, but as I'm not completely sure about this I decided to not set them as @deprecated:

  • mutualFriendCount()
  • hasMutualFriends()
  • isCloseFriend()
  • hasFriendRequested()
  • isOnline()
  • isBlocking()
  • followerCount()
  • isFollowing()

But created a method to solve the false-postivie return from these:

  • isOnline()
  • hasFriendRequest()
  • isCloseFriend()

Also created a UnitTest for those profile values.

gabetavares avatar May 22 '22 19:05 gabetavares

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 30 '22 22:07 stale[bot]