René's URL Explorer Experiment


Title: feat: add common interfaces by fm-sys · Pull Request #457 · spotify-web-api-java/spotify-web-api-java · GitHub

Open Graph Title: feat: add common interfaces by fm-sys · Pull Request #457 · spotify-web-api-java/spotify-web-api-java

X Title: feat: add common interfaces by fm-sys · Pull Request #457 · spotify-web-api-java/spotify-web-api-java

Description: I'm working on a project, where I'm sometimes getting a PlaylistSimplified and sometimes a Playlist. As I only need the basic properties, it would save me a lot of boilerplate code if I could downcast both classes to IPlaylist instead of writing my own conversion methods and model classes. Therefore, this pull request introduces new interfaces to unify the representation of Spotify model objects (Album, Artist, Playlist, Show, Episode, and Track), and updates the corresponding model classes to implement these interfaces. This especially benefits applications implementing this library by providing common interfaces for full and simplified versions of model objects. I've added no tests, as interfaces only provide the contract, not the implementation, and the model class specific implementations are already tested. The change is done in a way it shouldn't break any code of existing applications. I've targeted the beta branch and would be happy if this PR could be included in the final v10 release.

Open Graph Description: I'm working on a project, where I'm sometimes getting a PlaylistSimplified and sometimes a Playlist. As I only need the basic properties, it would save me a lot of boilerplate code if I cou...

X Description: I'm working on a project, where I'm sometimes getting a PlaylistSimplified and sometimes a Playlist. As I only need the basic properties, it would save me a lot of boilerplate code ...

Opengraph URL: https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:93cb43e0-fdb3-e2b1-480a-c4d34c662a79
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE806:1166E6:2D7EC94:3F24025:6A63372E
html-safe-nonce270c8a0b0f7f56ff2d69a2b5ec480c1835c9992ef7d5f3b42f944305e5865738
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODA2OjExNjZFNjoyRDdFQzk0OjNGMjQwMjU6NkE2MzM3MkUiLCJ2aXNpdG9yX2lkIjoiOTM2NjMzMjQxMTk3Mjk1NDA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdcba2f2d1209bc4686897a9f5e7f815950d8f530abff87db1fc9191d438b6dd7
hovercard-subject-tagpull_request:3521635943
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
twitter:imagehttps://avatars.githubusercontent.com/u/64581222?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/64581222?s=400&v=4
og:image:altI'm working on a project, where I'm sometimes getting a PlaylistSimplified and sometimes a Playlist. As I only need the basic properties, it would save me a lot of boilerplate code if I cou...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/spotify-web-api-java/spotify-web-api-java git https://github.com/spotify-web-api-java/spotify-web-api-java.git
octolytics-dimension-user_id90800172
octolytics-dimension-user_loginspotify-web-api-java
octolytics-dimension-repository_id18928344
octolytics-dimension-repository_nwospotify-web-api-java/spotify-web-api-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id18928344
octolytics-dimension-repository_network_root_nwospotify-web-api-java/spotify-web-api-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fspotify-web-api-java%2Fspotify-web-api-java%2Fpull%2F457%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fspotify-web-api-java%2Fspotify-web-api-java%2Fpull%2F457%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=spotify-web-api-java%2Fspotify-web-api-java
Reloadhttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Reloadhttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Reloadhttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
spotify-web-api-java https://github.com/spotify-web-api-java
spotify-web-api-javahttps://github.com/spotify-web-api-java/spotify-web-api-java
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Notifications https://github.com/login?return_to=%2Fspotify-web-api-java%2Fspotify-web-api-java
Fork 290 https://github.com/login?return_to=%2Fspotify-web-api-java%2Fspotify-web-api-java
Star 1.1k https://github.com/login?return_to=%2Fspotify-web-api-java%2Fspotify-web-api-java
Code https://github.com/spotify-web-api-java/spotify-web-api-java
Issues 2 https://github.com/spotify-web-api-java/spotify-web-api-java/issues
Pull requests 3 https://github.com/spotify-web-api-java/spotify-web-api-java/pulls
Discussions https://github.com/spotify-web-api-java/spotify-web-api-java/discussions
Actions https://github.com/spotify-web-api-java/spotify-web-api-java/actions
Security and quality 0 https://github.com/spotify-web-api-java/spotify-web-api-java/security
Insights https://github.com/spotify-web-api-java/spotify-web-api-java/pulse
Code https://github.com/spotify-web-api-java/spotify-web-api-java
Issues https://github.com/spotify-web-api-java/spotify-web-api-java/issues
Pull requests https://github.com/spotify-web-api-java/spotify-web-api-java/pulls
Discussions https://github.com/spotify-web-api-java/spotify-web-api-java/discussions
Actions https://github.com/spotify-web-api-java/spotify-web-api-java/actions
Security and quality https://github.com/spotify-web-api-java/spotify-web-api-java/security
Insights https://github.com/spotify-web-api-java/spotify-web-api-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fspotify-web-api-java%2Fspotify-web-api-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fspotify-web-api-java%2Fspotify-web-api-java%2Fissues%2Fnew%2Fchoose
dargmueslihttps://github.com/dargmuesli
spotify-web-api-java:betahttps://github.com/spotify-web-api-java/spotify-web-api-java/tree/beta
fm-sys:common-interfaceshttps://github.com/fm-sys/spotify-web-api-java/tree/common-interfaces
Conversation 19 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457
Commits 5 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/commits
Checks 5 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/checks
Files changed https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
feat: add common interfaces https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#top
Show all changes 5 commits https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
557f20d add common interfaces fm-sys Apr 13, 2026 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/commits/557f20d279888dfd8b61cccbc1ffab75e88b3516
fcf3d08 apply copilot review suggestion fm-sys Apr 13, 2026 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/commits/fcf3d0807417a2e1397c2ca5eae27280e65bf9d9
01f413e add getItems to IPlaylist to allow querying number of total tracks fm-sys Apr 13, 2026 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/commits/01f413e88ca5a942a1da0fda5a5cdf3f1b4363ea
2b41d3e refactor: sort imports dargmuesli Apr 29, 2026 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/commits/2b41d3e8b031909761409d4b92b14880056512b4
57276dd fix(playlist): allow to extend the has-total interface dargmuesli Apr 29, 2026 https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/commits/57276ddd270bef30951e7189f9909894ecc9d232
Clear filters https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
IAlbum.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-32c8d554ddf8c088d01301b84275b81d2b9776f74454a6638ed504452a65a2d7
IArtist.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-16339a27da7bd6fd7286e4ba62ac6c8a8aae73762f48ff0c3eb312bf58519f5a
IEpisode.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-ae2c4d459e07958e64a14b84718b1eb5125e58c4201d7dab6f82391b5ecaec3b
IHasTotal.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-2b7e0ca7dd94c92ad6e8f0b9369ac8c72da2fef5642ab0a7b91368a44830c716
IPlaylist.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-c33ad0bbc2f951b4ad565cd4121949ffa7abbf576779d1eed0789ca79e9b5edd
IShow.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-98440c433b9f69dcfa67da7da6e2e0d6901b6cd2395038375d965419537447f9
ITrack.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-c81bc885378676ba1beb16dcd64ebfa5e62baaf983ff84dae5ca6b7b6a9ed808
PlaylistTracksInformation.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-36b5cb2129b1d4592741a09134950b65febe526985e1d1344b5b6189345437dd
AlbumSimplifiedSpecial.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-8dcef9e368af17da83ba987fcbb2ec4f5a802f3a27e3092e1d847870fef73438
Album.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-0397a5effb79227d1ed0f1a125d2c297f98c0e45f28a51f779d04a2079313b52
AlbumSimplified.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-fe3c1a3ee2ac533d1340d3f4ed7c07ad3dc0d1380d15061257dadc3f17c03db3
Artist.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-44289a33a2c79923a6d22fe748cc9ffdb549079d69bd16a674e199e45e479b79
ArtistSimplified.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-453cecbd6cfe68bbcc43523ebb7a7259f86085df3cdb5bcbe828d0a6f63d73c5
Episode.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-5c01435a6b234c57a19279c9c5eacc22b85320392928e4efb2f4f639fef0edbb
EpisodeSimplified.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-fb3ef13171997e908a1455f5d8b7b107522d7b601bc39339fd0ce1241d28ba05
Paging.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-54289464ac387ef6ed983eb27b33379a48d912047e0233468513e0ac697e5d83
PagingCursorbased.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-4a986e946b7b598fb28e9ec69c104e26933ba18666fabb3d0f1b7250f7508322
Playlist.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-459f53728f3cff4a590ee2c8930f8b3daecbee0a8330c437d91ea881099efb3f
PlaylistSimplified.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-6c087af2822d2cab2dc7d3f71d5ab3a8e6c35e6b894d4b1cf26d77f693dc99e8
Show.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-7af5af93168c90ab8056626a7f602a8d67026efa4af0933f1add3b6e17964d83
ShowSimplified.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-57420cc1d54e752bbe4059d138d3fdce82cb0b4c99b5530fbf3a10b880fddab8
Track.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-7d1f1f801cbce4af74d5617e103326de2cafb0bf427e05bdd375930f3b6b3558
TrackSimplified.java https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-32dbd6d4d52e18e9aad0331c65ba71c54ff0f4ef2b6e31ca587103f62f4cab21
src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IAlbum.javahttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-32c8d554ddf8c088d01301b84275b81d2b9776f74454a6638ed504452a65a2d7
View file https://github.com/fm-sys/spotify-web-api-java/blob/57276ddd270bef30951e7189f9909894ecc9d232/src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IAlbum.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/{{ revealButtonHref }}
src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IArtist.javahttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-16339a27da7bd6fd7286e4ba62ac6c8a8aae73762f48ff0c3eb312bf58519f5a
View file https://github.com/fm-sys/spotify-web-api-java/blob/57276ddd270bef30951e7189f9909894ecc9d232/src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IArtist.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/{{ revealButtonHref }}
src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IEpisode.javahttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-ae2c4d459e07958e64a14b84718b1eb5125e58c4201d7dab6f82391b5ecaec3b
View file https://github.com/fm-sys/spotify-web-api-java/blob/57276ddd270bef30951e7189f9909894ecc9d232/src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IEpisode.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/{{ revealButtonHref }}
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IHasTotal.javahttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-2b7e0ca7dd94c92ad6e8f0b9369ac8c72da2fef5642ab0a7b91368a44830c716
View file https://github.com/fm-sys/spotify-web-api-java/blob/57276ddd270bef30951e7189f9909894ecc9d232/src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IHasTotal.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/{{ revealButtonHref }}
src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IPlaylist.javahttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files#diff-c33ad0bbc2f951b4ad565cd4121949ffa7abbf576779d1eed0789ca79e9b5edd
View file https://github.com/fm-sys/spotify-web-api-java/blob/57276ddd270bef30951e7189f9909894ecc9d232/src/main/java/se/michaelthelin/spotify/model_objects/interfaces/IPlaylist.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/{{ revealButtonHref }}
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
Please reload this pagehttps://github.com/spotify-web-api-java/spotify-web-api-java/pull/457/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.