update docstrings for AccountSettings and AccountOptOut

This commit is contained in:
blacktwin 2020-07-16 21:21:26 -04:00
parent de58965a9d
commit 998ed04a6c

View file

@ -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')