Update README.md

This commit is contained in:
Andrew Trieu
2022-12-15 18:01:15 +02:00
committed by GitHub
parent 5ed044f4dd
commit ba43568f68

View File

@@ -29,5 +29,5 @@ The project uses the four principles of object-oriented programming (OOP):
- This solution is intended to be a reference only. It is not intended to be a complete solution that will work for all possible inputs. It is possible to break the program by entering invalid inputs or by modifying the data files directly. The program is not intended to be robust enough to handle all possible inputs or to recover from all possible errors. - This solution is intended to be a reference only. It is not intended to be a complete solution that will work for all possible inputs. It is possible to break the program by entering invalid inputs or by modifying the data files directly. The program is not intended to be robust enough to handle all possible inputs or to recover from all possible errors.
- The project uses the __The Movie Database (TMDB)__ API to fetch movie details and populate the `Movie` objects. The API key is stored in the `API_KEY` variable. To run the project, you must set this variable to your TMDB API key. You can get an API key by signing up for a free TMDB account. - The project uses the __The Movie Database (TMDB)__ API to fetch movie details and populate the `Movie` objects. The API key is stored in the `API_KEY` variable. To run the project, you must set this variable to your TMDB API key. You can get an API key by signing up for a free TMDB account.
- JSON files are used to store the data for the `Movie`, `Showtime`, and `Seat` objects. The `Movie` and `Showtime` objects are stored in the `movies.json` and `showtimes.json` files, respectively. The `Seat` objects are stored in the `seats.json` file. The `Theater` class uses the `Gson` library to read and write these files. Make sure to add the `json-xxx.jar` file to the project's classpath. - JSON files are used to handle the data obtained using the API. Make sure to add the `json-xxx.jar` file to the project's classpath.
- The `TmdbExample` class is used to test the TMDB API. It is not part of the project. It is included in the project only for testing purposes. - The `TmdbExample` class is used to test the TMDB API. It is not part of the project. It is included in the project only for testing purposes.