develop #1
@@ -147,7 +147,7 @@ Movie Class Fields (already defined):
|
||||
|
||||
Implementation Steps:
|
||||
|
||||
1. Build and Send Request (getMovieById method):
|
||||
- Build and Send Request (getMovieById method):
|
||||
|
||||
- Create HTTP request to: https://api.meshcomp.ir/api/v1/movies/{movieId}
|
||||
|
||||
@@ -155,13 +155,13 @@ Implementation Steps:
|
||||
|
||||
- Send request and get response
|
||||
|
||||
2. Handle Response (getMovieById method):
|
||||
- Handle Response (getMovieById method):
|
||||
|
||||
- If status code is 200, return JSON body
|
||||
|
||||
- Otherwise, print error and return null
|
||||
|
||||
3. Parse JSON and Create Movie Object (displayMovieDetails method):
|
||||
- Parse JSON and Create Movie Object (displayMovieDetails method):
|
||||
|
||||
- Parse JSON response to JsonObject
|
||||
|
||||
@@ -171,7 +171,7 @@ Implementation Steps:
|
||||
|
||||
- Create a Movie object with all extracted data
|
||||
|
||||
4. Display Results (displayMovieDetails method):
|
||||
- Display Results (displayMovieDetails method):
|
||||
|
||||
- Print all movie details in a clean format
|
||||
|
||||
|
||||
Reference in New Issue
Block a user