private StringBuilder idProcessing ( final TmdbParameters params ) { StringBuilder urlString = new StringBuilder ( ) ; // Append the ID if ( params . has ( Param . ID ) ) { urlString . append ( "/" ) . append ( params . get ( Param . ID ) ) ; } if ( params . has ( Param . SEASON_NUMBER ) ) { urlString . append ( "/season/" ) . append ( params . get ( Param . SEASON_NUMBER ) ) ; } if ( params . has ( Param . EPISODE_NUMBER ) ) { urlString . append ( "/episode/" ) . append ( params . get ( Param . EPISODE_NUMBER ) ) ; } if ( submethod != MethodSub . NONE ) { urlString . append ( "/" ) . append ( submethod . getValue ( ) ) ; } // Append the key information urlString . append ( DELIMITER_FIRST ) . append ( Param . API_KEY . getValue ( ) ) . append ( apiKey ) ; return urlString ; }
Create the ID based URL portion