Skip to content

Commit

Permalink
added background and displayNameSubText props
Browse files Browse the repository at this point in the history
  • Loading branch information
MinshuG committed Jan 22, 2022
1 parent 9c9a9dd commit 9e18b4e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python-dateutil==2.8.1
aiohttp==3.7.3
requests==2.25.1
Pillow~=8.1.0
aiohttp
requests
Pillow
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
#'Programming Language :: Python :: 3.6', # not sure
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand Down
2 changes: 2 additions & 0 deletions valorant_api/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Agent:
bust_portrait: str
full_portrait: str
kill_feed_portrait: str
background: str
asset_path: str
is_full_portrait_right_facing: bool
is_playable_character: bool
Expand All @@ -87,6 +88,7 @@ def __init__(self, data: dict) -> None:
self.bust_portrait = data.get("bustPortrait")
self.full_portrait = data.get("fullPortrait")
self.kill_feed_portrait = data.get("killfeedPortrait")
self.background = data.get("background")
self.asset_path = data.get("assetPath")
self.is_full_portrait_right_facing = data.get("isFullPortraitRightFacing")
self.is_playable_character = data.get("isPlayableCharacter")
Expand Down
6 changes: 4 additions & 2 deletions valorant_api/bundles.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
from dataclasses import dataclass
from typing import Union
from typing import Optional


@dataclass
class Bundle:
uuid: str
display_name: str
display_name_sub_text: Optional[str]
description: str
display_icon: str
display_icon2: str
vertical_promo_image: Union[str, None]
vertical_promo_image: Optional[str]
asset_path: str
raw_data: dict

def __init__(self, data: dict) -> None:
self.uuid = data.get("uuid")
self.display_name = data.get("displayName")
self.display_name_sub_text = data.get("displayNameSubText")
self.description = data.get("description")
self.display_icon = data.get("displayIcon")
self.display_icon2 = data.get("displayIcon2")
Expand Down

0 comments on commit 9e18b4e

Please sign in to comment.