Software Design - NMSU-CS-CS371/team-project-real-wheretonext GitHub Wiki

Classes

WhereToNext is a Java Swing desktop app that searches the Yelp API for hotels, restaurants, and events in a given city. It is built around five classes.

WhereToNextUI is the main window and the entry point of the app. It builds the input form, handles the search button, and kicks off the search process. There is only ever one instance of it.

BackgroundPanel is a simple panel that inserts a background image behind the main screen. It has no connection to the rest of the system.

YelpApiClient handles all communication with the Yelp API. It sends the HTTP request and returns the results from yelp as JSON. If the API ever changes, this is the only class that needs to be updated.

SearchController fetches all the information for the selected city. When the user hits search, it takes the city and selected categories, calls YelpApiClient for each one, filters out businesses with too few reviews, and formats the results.

ResultsPanel displays the formatted results in a scrollable text area.