From 9f556380c5d88d43ac24c96e2e4654db82dffb26 Mon Sep 17 00:00:00 2001 From: flare Date: Sat, 1 Feb 2020 23:31:30 +0000 Subject: [PATCH] 0.1.8 --- r6statsapi/__init__.py | 2 +- r6statsapi/enums.py | 35 ++++++++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/r6statsapi/__init__.py b/r6statsapi/__init__.py index d7e7d8d..5eb0a4b 100644 --- a/r6statsapi/__init__.py +++ b/r6statsapi/__init__.py @@ -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)" diff --git a/r6statsapi/enums.py b/r6statsapi/enums.py index 8adbbbb..2e1a03b 100644 --- a/r6statsapi/enums.py +++ b/r6statsapi/enums.py @@ -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 @@ -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