-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
42 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,13 @@ | ||
from typing import NamedTuple | ||
|
||
|
||
## Authentication | ||
class AuthenticationInfo(NamedTuple): | ||
""" | ||
Attributes: | ||
access_token (str): The session's access token | ||
client_token (str): The session's client token | ||
uuid (str): The uuid of the player | ||
name (str): The name of the player | ||
legacy (bool): Wether the account has migrated | ||
demo (bool): Wether the account is demo | ||
""" | ||
access_token: str | ||
client_token: str | ||
uuid: str | ||
name: str | ||
legacy: bool | ||
demo: bool | ||
|
||
## Security | ||
class ChallengeInfo(NamedTuple): | ||
""" | ||
Attributes: | ||
id (int): The id of the challenge | ||
challenge (str): The challenge to complete | ||
""" | ||
|
||
id: int | ||
challenge: str |