parKING is a desktop app that helps drivers choose the best place to park via the Command Line Interface (CLI). parKING allows users to search, save and look at car park availability information at a glance, while interfacing with LTA’s real-time API.
Given below are my contributions to the project:
Command
, CommandResult
, Parser
classes to parse the user input and return the command and
command result.
Parser
class takes in a String user input as parses it into a command.execute()
method to return a CommandResult
, which will be printed in the terminal.Parser
class does the above in a do-while loop until the user calls for the ExitCommand
.update
command to update the data from the api.New feature: Added the auth
command to authenticate the user’s secret api key.
Filter
, Exit
, Help
, List
, Favourite
, Unfavourite
, and Find
commands.Parser
,
Command
, and runUntilExitCommandLoop
classes, and explains how the aforementioned classes work together to parse
user input into commands and return the command result.Favourite
,
FavouriteCommand
, UnfavouriteCommand
, Command
, and FileStorage
classes work together to implement the favourite
and unfavourite features.