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

Adapt recommendations to include a full track object with a full album #180

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/models/_models.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/src/models/recommendations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class Recommendations extends Object {
/// A List of [RecommendationsSeed] objects.
List<RecommendationsSeed>? seeds;

/// A List of [TrackSimple] objects ordered according to the parameters
/// A List of [Track] objects ordered according to the parameters
/// supplied.
List<TrackSimple>? tracks;
List<Track>? tracks;
}

/// Json representation of the recommendation seed
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/track.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Track extends Object implements TrackSimple {

/// The album on which the track appears. The album object includes a link
/// in [href] to full information about the album.
AlbumSimple? album;
Album? album;

/// The artists who performed the track. Each artist object includes a link
/// in [href] to more detailed information about the artist.
Expand Down
Loading