Skip to content

Commit

Permalink
added new method for fetching lobbysteamid
Browse files Browse the repository at this point in the history
  • Loading branch information
miedzinski committed Jun 2, 2015
1 parent 05c8a95 commit c0a2ce7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions steam/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ def location(self):
obj = self._prof
return (obj.get("locstatecode"), obj.get("loccountrycode"))

@property
def lobbysteamid(self):
"""
Returns a lobbynumber as int from few Source games
"""
return int(self._prof["lobbysteamid"])

@property
def _prof(self):
if not self._cache:
Expand Down

0 comments on commit c0a2ce7

Please sign in to comment.