mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 13:40:22 +00:00
update docstrings for AccountSettings and AccountOptOut
This commit is contained in:
parent
de58965a9d
commit
998ed04a6c
1 changed files with 18 additions and 1 deletions
|
@ -1320,6 +1320,17 @@ def _chooseConnection(ctype, name, results):
|
||||||
|
|
||||||
|
|
||||||
class AccountSettings(PlexObject):
|
class AccountSettings(PlexObject):
|
||||||
|
""" Represents a single Account Setting
|
||||||
|
'https://plex.tv/api/v2/user/{userUUID}/settings'
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
id (str): Unknown. "experience"?
|
||||||
|
type (str): "json"
|
||||||
|
value (dict): Lots of user server, library,
|
||||||
|
and other endpoints and settings
|
||||||
|
hidden (str): Unknown. Are these settings hidden?
|
||||||
|
updatedAt (datetime): Datetime last updated
|
||||||
|
"""
|
||||||
|
|
||||||
def _loadData(self, data):
|
def _loadData(self, data):
|
||||||
self.id = data.attrib.get('id')
|
self.id = data.attrib.get('id')
|
||||||
|
@ -1333,8 +1344,14 @@ class AccountSettings(PlexObject):
|
||||||
|
|
||||||
|
|
||||||
class AccountOptOut(PlexObject):
|
class AccountOptOut(PlexObject):
|
||||||
|
""" Represents a single AccountOptOut
|
||||||
|
'https://plex.tv/api/v2/user/{userUUID}/settings/opt_outs'
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
key (str): Online Media Source key
|
||||||
|
value (str): Online Media Source opt_in or opt_out
|
||||||
|
"""
|
||||||
|
|
||||||
TYPE = 'array'
|
|
||||||
def _loadData(self, data):
|
def _loadData(self, data):
|
||||||
self.key = data.attrib.get('key')
|
self.key = data.attrib.get('key')
|
||||||
self.value = data.attrib.get('value')
|
self.value = data.attrib.get('value')
|
||||||
|
|
Loading…
Reference in a new issue