-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer.py
More file actions
35 lines (20 loc) · 796 Bytes
/
player.py
File metadata and controls
35 lines (20 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Player:
def __init__(self, account_id, uuid, active_listing_id=None):
self.account_id = account_id
self.uuid = uuid
self.active_listing_id = active_listing_id
self.active_session_id = None
def get_id(self):
return self.uuid
def get_account_id(self):
return self.account_id
def get_active_listing_id(self):
return self.active_listing_id
def set_active_listing_id(self, active_listing_id):
self.active_listing_id = active_listing_id
def is_in_session(self):
return self.active_session_id is not None
def get_active_session_id(self):
return self.active_session_id
def set_active_session_id(self, active_session_id):
self.active_session_id = active_session_id