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

Add isPlaylist to response JSON #91

Merged
merged 3 commits into from
Jun 2, 2018
Merged

Add isPlaylist to response JSON #91

merged 3 commits into from
Jun 2, 2018

Conversation

devoxin
Copy link
Member

@devoxin devoxin commented Mar 28, 2018

This allows clients to identify Search or Playlist results and handle the response accordingly.

This is a breaking change to clients as it modifies the JSON that is returned

Partially fulfills #38

@PassTheMayo
Copy link

+1

@freyacodes freyacodes added this to the v3.0 milestone Apr 2, 2018
@freyacodes freyacodes changed the base branch from dev to v3 April 30, 2018 12:27
@@ -98,3 +103,13 @@ public void loadFailed(FriendlyException e) {
}

}

class LoadResult {
public List<AudioTrack> tracks;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make this immutable?

@jaxxibae
Copy link

This is super useful, can someone be able to merge this PR?

@freyacodes
Copy link
Member

It is planned for v3 because of its breaking changes. See the milestone

@jaxxibae
Copy link

jaxxibae commented Jun 2, 2018

Ah, understood. Thanks

@freyacodes freyacodes merged commit 0dc6517 into lavalink-devs:v3 Jun 2, 2018
@SamOphis SamOphis mentioned this pull request Jul 19, 2018
4 tasks
freyacodes pushed a commit to freyacoded/repo-test that referenced this pull request Oct 11, 2022
* Add isPlaylist to response JSON

* Unmodifiable list

* Expose selectedTrack and playlistName
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.

None yet

4 participants