| 252 | |
| 253 | |
| 254 | class Me: |
| 255 | __slots__ = ( |
| 256 | "_user", |
| 257 | "_pending_offers", |
| 258 | "_actionable_trades" |
| 259 | ) |
| 260 | |
| 261 | def __init__(self, *, data: Dict[str, Any]): |
| 262 | self._user = data.get("user") |
| 263 | self._pending_offers = data.get("pending_offers") |
| 264 | self._actionable_trades = data.get("actionable_trades") |
| 265 | |
| 266 | @property |
| 267 | def user(self) -> Optional[User]: |
| 268 | return User(data=self._user) |
| 269 | |
| 270 | @property |
| 271 | def pending_offers(self) -> Optional[int]: |
| 272 | return self._pending_offers |
| 273 | |
| 274 | @property |
| 275 | def actionable_trades(self) -> Optional[int]: |
| 276 | return self._actionable_trades |