psnawp_api.models.trophies.trophy_summary module#

Provides Class for Trophy Summary.

class TrophySummary(account_id: str, trophy_level: int, progress: int, tier: int, earned_trophies: TrophySet)[source]#

Bases: object

Class representing the overall summary of the number of trophies earned by a user.

To create instance of this class, use the class method TrophySummary.from_endpoint()

Variables:
  • account_id (str) – The ID of the account being accessed.

  • trophy_level (int) – The overall trophy level.

  • progress (int) – Percentage process towards the next trophy level.

  • tier (int) – The tier this trophy level is in.

  • earned_trophies (TrophySet) – Number of trophies which have been earned by type.

Note

This class is intended to be used via Client or User Class. See psnawp_api.models.client.Client.trophy_summary() or psnawp_api.models.user.User.trophy_summary() to create an instance of this class.

__init__(account_id: str, trophy_level: int, progress: int, tier: int, earned_trophies: TrophySet) None#
account_id: str#
earned_trophies: TrophySet#
classmethod from_endpoint(authenticator: Authenticator, account_id: str) TrophySummary[source]#

Retrieve an overall summary of the number of trophies earned for a user broken down by.

  • type

  • overall trophy level

  • progress towards the next level

  • current tier

Returns:

TrophySummary object with all the information

Raises:

PSNAWPForbiddenError – If the user’s profile is private

progress: int#
tier: int#
trophy_level: int#