CSC207-fiveguys / music-java-app

MIT License
1 stars 1 forks source link

Added Artist and Track Data Access Objects #6

Closed HussainE4 closed 11 months ago

HussainE4 commented 11 months ago

Motivation and Context

While we already have a Data Access Object for handling Users, we should add additional data access objects for some of the other major entities that we are storing (Artists and Tracks) in order to keep in line with the SOLID principles (mainly the Single Responsibility Principle)

Your Changes

Description: I created two new data access objects for the Artist and Track entities, which store a dictionary containing the ids and actual object values. This data will also be stored in a json file(Not Implemented Yet). This is done to prevent multiple users creating different Track objects for the same track, which also reduces the amount of API calls we shall be making. Also, added the save method to each of the data access objects to write the data to a json file (not implemented yet)

Type of change (select all that apply):

Testing

Questions and Comments (if applicable)

The methods that deal with reading and writing from the json files have not been implemented yet

Checklist