public List < DownloadListItem > getDownloadList ( ) { ClientResource resource = new ClientResource ( Route . DOWNLOAD_LIST . url ( ) ) ; resource . setChallengeResponse ( this . auth . toChallenge ( ) ) ; try { Representation repr = resource . get ( ) ; return mapper . readValue ( repr . getText ( ) , new TypeReference < List < DownloadListItem > > ( ) { } ) ; } catch ( IOException ex ) { LEX4JLogger . log ( Level . WARNING , "Could not retrieve download list correctly!" ) ; return null ; } }
Returns the download list of the current user