public List < DownloadHistoryItem > getDownloadHistory ( ) { ClientResource resource = new ClientResource ( Route . DOWNLOAD_HISTORY . url ( ) ) ; resource . setChallengeResponse ( this . auth . toChallenge ( ) ) ; try { String result = resource . get ( ) . getText ( ) ; return mapper . readValue ( result , new TypeReference < List < DownloadHistoryItem > > ( ) { } ) ; } catch ( IOException e ) { LEX4JLogger . log ( Level . WARNING , "Could not retrieve download history correctly!" ) ; return null ; } }
Returns the download history of the current user