1# Generated by scripts/unasync.py from src/wow/_async/resources/playable_class.py. Do not edit.
2"""Routes of the Playable Class API."""
3
4from wow._sync._resource import Resource
5from wow.models._common import Media
6from wow.models.playable_class import PlayableClass, PlayableClassIndex
7
8__all__ = ["PlayableClasses"]
9
10
[docs]
11class PlayableClasses(Resource):
12 """``client.playable_classes``: classes such as Warrior and Mage."""
13
14 __slots__ = ()
15
[docs]
16 def index(self) -> PlayableClassIndex:
17 """List every playable class."""
18 return self._get("static", "/data/wow/playable-class/index", PlayableClassIndex)
19
[docs]
20 def get(self, class_id: int) -> PlayableClass:
21 """Get one playable class by id."""
22 return self._get("static", f"/data/wow/playable-class/{class_id}", PlayableClass)
23