Achievement Models
achievement
Classes:
-
Achievement–Represents an achievement, potentially with multiple stages or levels.
-
AchievementCategory–Represents a category of achievements.
-
AchievementDetail–Represents the details of a specific achievement.
-
AchievementReward–Represents a reward granted for completing an achievement.
Achievement
pydantic-model
Represents an achievement, potentially with multiple stages or levels.
Attributes:
-
id(int) –The base ID for the achievement (stages might share this).
-
order(int) –The display order of the achievement within its category.
-
details(list[AchievementDetail]) –A list containing details for each stage or level of the achievement.
Fields:
AchievementCategory
pydantic-model
Represents a category of achievements.
Attributes:
-
id(int) –The unique ID of the achievement category.
-
name(str) –The name of the category (e.g., "Wonders of the World").
-
order(int) –The display order of the category.
-
icon(str) –The icon URL for the category.
-
achievements(list[Achievement]) –A list of achievements belonging to this category.
Fields:
Validators:
-
_convert_icon_url→icon -
_convert_achievements→achievements
AchievementDetail
pydantic-model
Represents the details of a specific achievement.
Attributes:
-
id(int) –The unique ID of the achievement.
-
title(str) –The title or name of the achievement.
-
description(str) –The description or requirement for the achievement.
-
rewards(list[AchievementReward]) –A list of rewards granted upon completion.
Fields:
-
id(int) -
title(str) -
description(str) -
rewards(list[AchievementReward])
Validators:
-
_convert_rewards→rewards