Skip to content

Commit

Permalink
0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Feb 1, 2020
1 parent 1f3d228 commit 9f55638
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion r6statsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .player import WeaponCategories as WeaponCategories
from .player import Weapons as Weapons

__version__ = "0.1.7b"
__version__ = "0.1.8"
__author__ = "Jamie (flare)"


Expand Down
35 changes: 26 additions & 9 deletions r6statsapi/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,29 @@


class Platform(Enum):
"""Platform names."""
"""Platform names.
.. container:: operations
``str(x)``
Returns platform's friendly name, e.g. "Xbox Live"
"""

value: str
#: UPlay/PC Network
uplay = "uplay" # pc
uplay = "PC" # pc

#: The Playstation Network
psn = "psn" # playstation
psn = "Playstation Network" # playstation

#: Xbox Live
xbox = "xbl" # xbox
xbox = "Xbox Live" # xbox

#: Alias of xbox
xbl = xbox

#: Alias of psn
ps4 = psn

#: Alias of uplay
pc = uplay

Expand All @@ -26,17 +35,25 @@ def __str__(self) -> str:


class Regions(Enum):
"""R6Stats Regions."""
"""R6Stats Regions.
.. container:: operations
``str(x)``
Returns platform's friendly name, e.g. "Xbox Live"
"""

value: str
#: All Regions
all = "all"
all = "All Regions"

#: North America
ncsa = "ncsa"
ncsa = "North America"

#: Europe
emea = "emea"
emea = "Europe"

#: Asia
apac = "apac"
apac = "Asia"

#: Alias of emea
eu = emea
Expand Down

0 comments on commit 9f55638

Please sign in to comment.