def _loadData(self, data):
        """ Load attribute values from Plex XML response. """
        self._data = data
        self.id = utils.cast(int, data.attrib.get('id'))
        self.serverId = utils.cast(int, data.attrib.get('serverId'))
        self.machineIdentifier = data.attrib.get('machineIdentifier')
        self.name = data.attrib.get('name')
        self.lastSeenAt = utils.toDatetime(data.attrib.get('lastSeenAt'))
        self.numLibraries = utils.cast(int, data.attrib.get('numLibraries'))
        self.allLibraries = utils.cast(bool, data.attrib.get('allLibraries'))
        self.owned = utils.cast(bool, data.attrib.get('owned'))
        self.pending = utils.cast(bool, data.attrib.get('pending'))
def _loadData ( self , data ) : self . _data = data self . id = utils . cast ( int , data . attrib . get ( 'id' ) ) self . serverId = utils . cast ( int , data . attrib . get ( 'serverId' ) ) self . machineIdentifier = data . attrib . get ( 'machineIdentifier' ) self . name = data . attrib . get ( 'name' ) self . lastSeenAt = utils . toDatetime ( data . attrib . get ( 'lastSeenAt' ) ) self . numLibraries = utils . cast ( int , data . attrib . get ( 'numLibraries' ) ) self . allLibraries = utils . cast ( bool , data . attrib . get ( 'allLibraries' ) ) self . owned = utils . cast ( bool , data . attrib . get ( 'owned' ) ) self . pending = utils . cast ( bool , data . attrib . get ( 'pending' ) )
Load attribute values from Plex XML response.