MCPcopy Create free account
hub / github.com/Rushifakami/csfloat_api / Sticker

Class Sticker

models/stickers.py:29–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class Sticker:
30 __slots__ = (
31 "_stickerId",
32 "_slot",
33 "_wear",
34 "_offset_x",
35 "_offset_y",
36 "_icon_url",
37 "_name",
38 "_reference"
39 )
40
41 def __init__(self, *, data: Dict[str, Any]):
42 self._stickerId = data.get("stickerId")
43 self._slot = data.get("slot")
44 self._wear = data.get("wear")
45 self._offset_x = data.get("offset_x")
46 self._offset_y = data.get("offset_y")
47 self._icon_url = data.get("icon_url")
48 self._name = data.get("name")
49 self._reference = data.get("reference")
50
51 @property
52 def stickerId(self) -> Optional[int]:
53 return self._stickerId
54
55 @property
56 def slot(self) -> Optional[int]:
57 return self._slot
58
59 @property
60 def wear(self) -> Optional[float]:
61 return self._wear
62
63 @property
64 def icon_url(self) -> Optional[str]:
65 return self._icon_url
66
67 @property
68 def name(self) -> Optional[str]:
69 return self._name
70
71 @property
72 def reference(self) -> Optional[StickerReference]:
73 if self._reference is not None:
74 return StickerReference(data=self._reference)

Callers 1

stickersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected