This PR adds the get top tracks method to act as an interface for the Spotify api call implemented by Brian. This is required for the follow artist use case. Also, adds Factory classes for entities as we are required to use 2 Design Patterns
Your Changes
Description:
Added the get top tracks method in Spotify dao which takes in an Artist ID and returns an ArrayList of their Top Tracks. Added Factory classes for all the entities and updated Dao's to use them
Type of change (select all that apply):
[x] New feature (non-breaking change which adds functionality)
[x] Refactoring (internal change to codebase, without changing functionality)
Testing
Questions and Comments (if applicable)
Checklist
[x] I have performed a self-review of my own code.
[x] Coding style (conforms to Google Java Style Guide)
[x] Especially follows section 7 (Javadoc is present for every public class, public or protected member)
[x] Especially follows section 4.6 (Multiple consecutive blank lines are not encouraged)
[x] Correctness (follows CA and SOLID, is a reasonable and not overly complicated solution, etc.)
[x] Description of pull request is clear, consise, and reasonably detailed
Motivation and Context
This PR adds the get top tracks method to act as an interface for the Spotify api call implemented by Brian. This is required for the follow artist use case. Also, adds Factory classes for entities as we are required to use 2 Design Patterns
Your Changes
Description: Added the get top tracks method in Spotify dao which takes in an Artist ID and returns an ArrayList of their Top Tracks. Added Factory classes for all the entities and updated Dao's to use them Type of change (select all that apply):
Testing
Questions and Comments (if applicable)
Checklist