-
-
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.
- Loading branch information
AjayACST
committed
Jan 19, 2021
1 parent
7ea7779
commit 8df0b48
Showing
8 changed files
with
399 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,3 +141,4 @@ cython_debug/ | |
.vscode | ||
|
||
.DS_Store | ||
testing.py |
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 +1,32 @@ | ||
"""Models.""" | ||
"""Models for mcsrvstats data objects.""" | ||
from .hive_achievements import HiveAchievements | ||
from .hive_mc_rank import HiveRank | ||
from .hive_status import HiveStatus | ||
from .manacube import Aether | ||
from .manacube import Atlas | ||
from .manacube import Aztec | ||
from .manacube import Creative | ||
from .manacube import Factions | ||
from .manacube import Islands | ||
from .manacube import Kitpvp | ||
from .manacube import Manacube | ||
from .manacube import Oasis | ||
from .manacube import Parkour | ||
from .manacube import Survival | ||
|
||
__all__ = [ | ||
"HiveAchievements", | ||
"HiveStatus", | ||
"HiveRank", | ||
"Manacube", | ||
"Parkour", | ||
"Aztec", | ||
"Oasis", | ||
"Islands", | ||
"Survival", | ||
"Factions", | ||
"Aether", | ||
"Atlas", | ||
"Creative", | ||
"Kitpvp", | ||
] |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Hive Achievements related objects.""" | ||
from typing import List | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class HiveAchievements(BaseModel): | ||
"""Hive Achievements Model. | ||
Args: | ||
all_achievements (List[str]): A list of all achievements on the hive network. | ||
""" | ||
|
||
all_achievements: List[str] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Hive game stats related objects.""" |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Hive rank related objects.""" | ||
from pydantic import BaseModel | ||
|
||
|
||
class HiveRank(BaseModel): | ||
"""Hive rank model. | ||
Args: | ||
rank (str): The current players rank. | ||
""" | ||
|
||
rank: str |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Hive Status related objects.""" | ||
from pydantic import BaseModel | ||
|
||
|
||
class HiveStatus(BaseModel): | ||
"""Hive Status Model. | ||
Args: | ||
description (str): Description of the game the player is playing. | ||
game (str): The game the player is playing. | ||
""" | ||
|
||
description: str | ||
game: str |
Oops, something went wrong.