[Feature 6] File I/O
Closed this issue · 0 comments
TDLR: Feature that allows a saved timetable to be exported and a timetable file to be imported as well as read a JSON file containing all courses at the University of Toronto Faculty of Arts & Science from the Fall (F) and Winter (S) sessions.
Summary:
In Feature 6, a JSON file containing all courses at the University of Toronto Faculty of Arts & Science from the Fall (F) and Winter (S) sessions can be read and converted into different entities such as the CalendarCourse and used by different parts of our program.
Design patterns and SOLID principles feature 6 follows includes factory design pattern, builder design pattern, dependency injection, and much more.
Feature 6 also allows a saved timetable to be exported and a timetable file to be imported as well as which is a work in progress. How it would work is that with MainMenuUI, it allows Users to import a Timetable in the form of a JSON file from their local storage/computer and add it as a new Timetable in TimetableUI/AllTimetableUI and store it. The program would also allow users to export a Timetable in the form of a JSON file by grabbing the associated JSON file saved in the program’s database.