def _loadData(self, data):
        """ Load attribute values from Plex XML response. """
        self._data = data
        self.allowCameraUpload = cast(bool, data.attrib.get('allowCameraUpload'))
        self.allowChannelAccess = cast(bool, data.attrib.get('allowChannelAccess'))
        self.allowMediaDeletion = cast(bool, data.attrib.get('allowMediaDeletion'))
        self.allowSharing = cast(bool, data.attrib.get('allowSharing'))
        self.allowSync = cast(bool, data.attrib.get('allowSync'))
        self.backgroundProcessing = cast(bool, data.attrib.get('backgroundProcessing'))
        self.certificate = cast(bool, data.attrib.get('certificate'))
        self.companionProxy = cast(bool, data.attrib.get('companionProxy'))
        self.diagnostics = utils.toList(data.attrib.get('diagnostics'))
        self.eventStream = cast(bool, data.attrib.get('eventStream'))
        self.friendlyName = data.attrib.get('friendlyName')
        self.hubSearch = cast(bool, data.attrib.get('hubSearch'))
        self.machineIdentifier = data.attrib.get('machineIdentifier')
        self.multiuser = cast(bool, data.attrib.get('multiuser'))
        self.myPlex = cast(bool, data.attrib.get('myPlex'))
        self.myPlexMappingState = data.attrib.get('myPlexMappingState')
        self.myPlexSigninState = data.attrib.get('myPlexSigninState')
        self.myPlexSubscription = cast(bool, data.attrib.get('myPlexSubscription'))
        self.myPlexUsername = data.attrib.get('myPlexUsername')
        self.ownerFeatures = utils.toList(data.attrib.get('ownerFeatures'))
        self.photoAutoTag = cast(bool, data.attrib.get('photoAutoTag'))
        self.platform = data.attrib.get('platform')
        self.platformVersion = data.attrib.get('platformVersion')
        self.pluginHost = cast(bool, data.attrib.get('pluginHost'))
        self.readOnlyLibraries = cast(int, data.attrib.get('readOnlyLibraries'))
        self.requestParametersInCookie = cast(bool, data.attrib.get('requestParametersInCookie'))
        self.streamingBrainVersion = data.attrib.get('streamingBrainVersion')
        self.sync = cast(bool, data.attrib.get('sync'))
        self.transcoderActiveVideoSessions = int(data.attrib.get('transcoderActiveVideoSessions', 0))
        self.transcoderAudio = cast(bool, data.attrib.get('transcoderAudio'))
        self.transcoderLyrics = cast(bool, data.attrib.get('transcoderLyrics'))
        self.transcoderPhoto = cast(bool, data.attrib.get('transcoderPhoto'))
        self.transcoderSubtitles = cast(bool, data.attrib.get('transcoderSubtitles'))
        self.transcoderVideo = cast(bool, data.attrib.get('transcoderVideo'))
        self.transcoderVideoBitrates = utils.toList(data.attrib.get('transcoderVideoBitrates'))
        self.transcoderVideoQualities = utils.toList(data.attrib.get('transcoderVideoQualities'))
        self.transcoderVideoResolutions = utils.toList(data.attrib.get('transcoderVideoResolutions'))
        self.updatedAt = utils.toDatetime(data.attrib.get('updatedAt'))
        self.updater = cast(bool, data.attrib.get('updater'))
        self.version = data.attrib.get('version')
        self.voiceSearch = cast(bool, data.attrib.get('voiceSearch'))
def _loadData ( self , data ) : self . _data = data self . allowCameraUpload = cast ( bool , data . attrib . get ( 'allowCameraUpload' ) ) self . allowChannelAccess = cast ( bool , data . attrib . get ( 'allowChannelAccess' ) ) self . allowMediaDeletion = cast ( bool , data . attrib . get ( 'allowMediaDeletion' ) ) self . allowSharing = cast ( bool , data . attrib . get ( 'allowSharing' ) ) self . allowSync = cast ( bool , data . attrib . get ( 'allowSync' ) ) self . backgroundProcessing = cast ( bool , data . attrib . get ( 'backgroundProcessing' ) ) self . certificate = cast ( bool , data . attrib . get ( 'certificate' ) ) self . companionProxy = cast ( bool , data . attrib . get ( 'companionProxy' ) ) self . diagnostics = utils . toList ( data . attrib . get ( 'diagnostics' ) ) self . eventStream = cast ( bool , data . attrib . get ( 'eventStream' ) ) self . friendlyName = data . attrib . get ( 'friendlyName' ) self . hubSearch = cast ( bool , data . attrib . get ( 'hubSearch' ) ) self . machineIdentifier = data . attrib . get ( 'machineIdentifier' ) self . multiuser = cast ( bool , data . attrib . get ( 'multiuser' ) ) self . myPlex = cast ( bool , data . attrib . get ( 'myPlex' ) ) self . myPlexMappingState = data . attrib . get ( 'myPlexMappingState' ) self . myPlexSigninState = data . attrib . get ( 'myPlexSigninState' ) self . myPlexSubscription = cast ( bool , data . attrib . get ( 'myPlexSubscription' ) ) self . myPlexUsername = data . attrib . get ( 'myPlexUsername' ) self . ownerFeatures = utils . toList ( data . attrib . get ( 'ownerFeatures' ) ) self . photoAutoTag = cast ( bool , data . attrib . get ( 'photoAutoTag' ) ) self . platform = data . attrib . get ( 'platform' ) self . platformVersion = data . attrib . get ( 'platformVersion' ) self . pluginHost = cast ( bool , data . attrib . get ( 'pluginHost' ) ) self . readOnlyLibraries = cast ( int , data . attrib . get ( 'readOnlyLibraries' ) ) self . requestParametersInCookie = cast ( bool , data . attrib . get ( 'requestParametersInCookie' ) ) self . streamingBrainVersion = data . attrib . get ( 'streamingBrainVersion' ) self . sync = cast ( bool , data . attrib . get ( 'sync' ) ) self . transcoderActiveVideoSessions = int ( data . attrib . get ( 'transcoderActiveVideoSessions' , 0 ) ) self . transcoderAudio = cast ( bool , data . attrib . get ( 'transcoderAudio' ) ) self . transcoderLyrics = cast ( bool , data . attrib . get ( 'transcoderLyrics' ) ) self . transcoderPhoto = cast ( bool , data . attrib . get ( 'transcoderPhoto' ) ) self . transcoderSubtitles = cast ( bool , data . attrib . get ( 'transcoderSubtitles' ) ) self . transcoderVideo = cast ( bool , data . attrib . get ( 'transcoderVideo' ) ) self . transcoderVideoBitrates = utils . toList ( data . attrib . get ( 'transcoderVideoBitrates' ) ) self . transcoderVideoQualities = utils . toList ( data . attrib . get ( 'transcoderVideoQualities' ) ) self . transcoderVideoResolutions = utils . toList ( data . attrib . get ( 'transcoderVideoResolutions' ) ) self . updatedAt = utils . toDatetime ( data . attrib . get ( 'updatedAt' ) ) self . updater = cast ( bool , data . attrib . get ( 'updater' ) ) self . version = data . attrib . get ( 'version' ) self . voiceSearch = cast ( bool , data . attrib . get ( 'voiceSearch' ) )
Load attribute values from Plex XML response.