Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /randovania_randovania /randovania /network_common /user.py
| from __future__ import annotations | |
| import dataclasses | |
| from randovania.bitpacking.json_dataclass import JsonDataclass | |
| UserID = int | |
| class RandovaniaUser(JsonDataclass): | |
| id: UserID | |
| name: str | |
| class CurrentUser: | |
| id: UserID | |
| name: str | |
| discord_id: int | None = None | |
| def from_json(cls, data: dict) -> CurrentUser: | |
| return cls( | |
| id=data["id"], | |
| name=data["name"], | |
| discord_id=data.get("discord_id"), | |
| ) | |
| def as_json(self) -> dict: | |
| return { | |
| "id": self.id, | |
| "name": self.name, | |
| "discord_id": self.discord_id, | |
| } | |
Xet Storage Details
- Size:
- 735 Bytes
- Xet hash:
- c8cba504e3fbe442e53cead7f44112a22dbdd96b5af0c1f8ef9317aac80f348c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.