-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement artist view (tracks & albums)
- Loading branch information
1 parent
c1ff22d
commit 872c6af
Showing
17 changed files
with
415 additions
and
252 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,5 @@ fastlane/test_output | |
# https://github.com/johnno1962/injectionforxcode | ||
|
||
iOSInjectionProject/ | ||
|
||
.DS_Store |
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,10 @@ | ||
// | ||
// ArtistTopAlbumsResponse.swift | ||
// firstfm | ||
// | ||
// Created by Nathanael Demacon on 7/17/21. | ||
// | ||
|
||
struct ArtistTopAlbumsResponse: Codable { | ||
var topalbums: ArtistTopAlbumsResponseTopAlbumsContainer | ||
} |
10 changes: 10 additions & 0 deletions
10
firstfm/Data/Entities/API/ArtistTopAlbumsResponseTopAlbumsContainer.swift
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,10 @@ | ||
// | ||
// ArtistTopAlbumsResponseTopAlbumsContainer.swift | ||
// firstfm | ||
// | ||
// Created by Nathanael Demacon on 7/17/21. | ||
// | ||
|
||
struct ArtistTopAlbumsResponseTopAlbumsContainer: Codable { | ||
var album: [ArtistAlbum] | ||
} |
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,10 @@ | ||
// | ||
// ArtistTopTracksResponse.swift | ||
// firstfm | ||
// | ||
// Created by Nathanael Demacon on 7/17/21. | ||
// | ||
|
||
struct ArtistTopTracksResponse: Codable { | ||
var toptracks: ArtistTopTracksResponseTopTracksContainer | ||
} |
10 changes: 10 additions & 0 deletions
10
firstfm/Data/Entities/API/ArtistTopTracksResponseTopTracksContainer.swift
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,10 @@ | ||
// | ||
// ArtistTopTracksResponseTopTracksContainer.swift | ||
// firstfm | ||
// | ||
// Created by Nathanael Demacon on 7/17/21. | ||
// | ||
|
||
struct ArtistTopTracksResponseTopTracksContainer: Codable { | ||
var track: [Track] | ||
} |
14 changes: 14 additions & 0 deletions
14
firstfm/Data/Entities/API/Spotify/AlbumSearchResponse.swift
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,14 @@ | ||
// | ||
// AlbumSearchResponse.swift | ||
// firstfm | ||
// | ||
// Created by Nathanael Demacon on 7/18/21. | ||
// | ||
|
||
struct SpotifyAlbumSearchResponse: Codable { | ||
var albums: SpotifyAlbumSearchResultsContainerResponse | ||
} | ||
|
||
struct SpotifyAlbumSearchResultsContainerResponse: Codable { | ||
var items: [SpotifyAlbum] | ||
} |
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,16 @@ | ||
// | ||
// ArtistAlbum.swift | ||
// firstfm | ||
// | ||
// Created by Nathanael Demacon on 7/17/21. | ||
// | ||
|
||
struct ArtistAlbum: Codable, Identifiable { | ||
var id: String { name } | ||
|
||
var mbid: String? | ||
var name: String | ||
var playcount: UInt | ||
var url: String | ||
var image: [LastFMImage] | ||
} |
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
Oops, something went wrong.