public ResultList < Translation > getMovieTranslations ( int movieId ) throws MovieDbException { TmdbParameters parameters = new TmdbParameters ( ) ; parameters . add ( Param . ID , movieId ) ; URL url = new ApiUrl ( apiKey , MethodBase . MOVIE ) . subMethod ( MethodSub . TRANSLATIONS ) . buildUrl ( parameters ) ; String webpage = httpTools . getRequest ( url ) ; try { WrapperTranslations wrapper = MAPPER . readValue ( webpage , WrapperTranslations . class ) ; ResultList < Translation > results = new ResultList <> ( wrapper . getTranslations ( ) ) ; wrapper . setResultProperties ( results ) ; return results ; } catch ( IOException ex ) { throw new MovieDbException ( ApiExceptionType . MAPPING_FAILED , "Failed to get translations" , url , ex ) ; } }
This method is used to retrieve a list of the available translations for a specific movie .