public ResultList < Artwork > getPersonImages ( int personId ) throws MovieDbException { TmdbParameters parameters = new TmdbParameters ( ) ; parameters . add ( Param . ID , personId ) ; URL url = new ApiUrl ( apiKey , MethodBase . PERSON ) . subMethod ( MethodSub . IMAGES ) . buildUrl ( parameters ) ; String webpage = httpTools . getRequest ( url ) ; try { WrapperImages wrapper = MAPPER . readValue ( webpage , WrapperImages . class ) ; ResultList < Artwork > results = new ResultList <> ( wrapper . getAll ( ArtworkType . PROFILE ) ) ; wrapper . setResultProperties ( results ) ; return results ; } catch ( IOException ex ) { throw new MovieDbException ( ApiExceptionType . MAPPING_FAILED , "Failed to get person images" , url , ex ) ; } }
Get the images for a specific person id .