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:
objectClass 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:
Note
This class is intended to be used via Client or User Class. See
psnawp_api.models.client.Client.trophy_summary()orpsnawp_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#
- 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