implement all TODO tasks
This commit is contained in:
@@ -22,15 +22,16 @@ public class Main {
|
||||
|
||||
case 2:
|
||||
// TODO: Get genre ID and page from user, then call movieService.displayMoviesByGenre()
|
||||
long generId = getLongInput("Enter the ID: ");
|
||||
long genreId = getLongInput("Enter the genre ID: ");
|
||||
long page = getLongInput("Enter the page: ");
|
||||
movieService.displayMoviesByGenre(generId, page);
|
||||
movieService.displayMoviesByGenre(genreId, page);
|
||||
break;
|
||||
|
||||
|
||||
case 3:
|
||||
// TODO (BONUS): Get movie ID from user, then call movieService.displayMovieDetails()
|
||||
|
||||
long movieId = getLongInput("Enter the movie ID: ");
|
||||
movieService.displayMovieDetails(movieId);
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user