-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from calluswhatyouwant/v0.2.x
Upgrade to v0.2.1
- Loading branch information
Showing
13 changed files
with
97 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export { default as Album } from './album/album'; | ||
export { default as AlbumSimplified } from './album/album-simplified'; | ||
export { default as Artist } from './artist/artist'; | ||
export { default as ArtistSimplified } from './artist/artist-simplified'; | ||
export { default as Category } from './browse/category'; | ||
export { default as RecommendationSeed } from './browse/recommendation-seed'; | ||
export { default as Recommendations } from './browse/recommendations'; | ||
export { default as Copyright } from './common/copyright'; | ||
export { default as Error } from './common/error'; | ||
export { default as Followers } from './common/followers'; | ||
export { default as Image } from './common/image'; | ||
export { default as SavedAlbum } from './library/saved-album'; | ||
export { default as SavedTrack } from './library/saved-track'; | ||
export { default as TrackLink } from './other/track-link'; | ||
export { default as CursorBasedPage } from './paging/cursor-based-page'; | ||
export { default as Page } from './paging/page'; | ||
export { default as Context } from './player/context'; | ||
export { default as CurrentlyPlaying } from './player/currently-playing'; | ||
export { default as PlayHistory } from './player/play-history'; | ||
export { default as Playlist } from './playlist/playlist'; | ||
export { default as PlaylistSimplified } from './playlist/playlist-simplified'; | ||
export { default as PlaylistTrack } from './playlist/playlist-track'; | ||
export { default as SearchResults } from './search/search-results'; | ||
export { default as AudioAnalysis } from './track/audio-analysis'; | ||
export { default as AudioFeatures } from './track/audio-features'; | ||
export { default as Track } from './track/track'; | ||
export { default as TrackSimplified } from './track/track-simplified'; | ||
export { default as PrivateUser } from './user/user-private'; | ||
export { default as PublicUser } from './user/user-public'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Page from '../paging/page'; | ||
import AlbumSimplified from '../album/album-simplified'; | ||
import Artist from '../artist/artist'; | ||
import PlaylistSimplified from '../playlist/playlist-simplified'; | ||
import Track from '../track/track'; | ||
|
||
class SearchResults { | ||
albums?: Page<AlbumSimplified>; | ||
artists?: Page<Artist>; | ||
playlists?: Page<PlaylistSimplified>; | ||
tracks?: Page<Track>; | ||
|
||
constructor(json: any) { | ||
if (json.albums) { | ||
this.albums = new Page<AlbumSimplified>( | ||
json, | ||
AlbumSimplified, | ||
'albums' | ||
); | ||
} | ||
if (json.artists) { | ||
this.artists = new Page<Artist>(json, Artist, 'artists'); | ||
} | ||
if (json.playlists) { | ||
this.playlists = new Page<PlaylistSimplified>( | ||
json, | ||
PlaylistSimplified, | ||
'playlists' | ||
); | ||
} | ||
if (json.tracks) { | ||
this.tracks = new Page<Track>(json, Track, 'tracks'); | ||
} | ||
} | ||
} | ||
|
||
export default SearchResults; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters