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
Generate models with a shared super type #7
Comments
sonallux
added a commit
that referenced
this issue
Mar 14, 2021
sonallux
added a commit
that referenced
this issue
Mar 15, 2021
sonallux
added a commit
that referenced
this issue
Mar 15, 2021
sonallux
added a commit
that referenced
this issue
Mar 20, 2021
sonallux
added a commit
that referenced
this issue
Mar 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The main Spotify objects (artist, album, track, playlist, show and episode) share a few common properties (
id
,type
,href
anduri
). Therefore, I propose to have an abstract super typeSpotifyObject
which contains these four properties. It might be also beneficial to have shared super type for each individual type of main Spotify object.This change would resolve to the following class hierarchy of all Spotify objects:
SpotifyObject
BaseAlbum
Album
SimplifiedAlbum
BaseArtist
Artist
SimplifiedArtist
BaseEpisode
BasePlaylist
BaseUser
BaseShow
Image
,PlaylistTrack
, ...)The text was updated successfully, but these errors were encountered: