Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct refactor #10

Merged

Conversation

PartialDragster
Copy link

@PartialDragster PartialDragster commented May 29, 2021

Adding in the Similar track code I noticed it was implemented so that a Track was different depending on which endpoint it came from. I've refactored the structs so that, for example, a Track is a Track no matter the endpoint it came from. The trade off is a number of the fields become Option since last.fm is a little inconsistent in what information it returns. But I felt from the perspective of someone using the library this would be an improvement. Going forward it will also decrease the amount of code that needs to be written.

@evelynharthbrooke
Copy link
Owner

This looks good to me, thank you for this! :)

@evelynharthbrooke evelynharthbrooke merged commit 2a280aa into evelynharthbrooke:main May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants