Skip to content

Instantly share code, notes, and snippets.

@Pasanpr
Last active May 12, 2017 04:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pasanpr/ccf6d6786ce02dfcb73d7f3f1bfd499e to your computer and use it in GitHub Desktop.
Save Pasanpr/ccf6d6786ce02dfcb73d7f3f1bfd499e to your computer and use it in GitHub Desktop.
import Foundation
struct Stub {
static var artist: Artist {
return Artist(id: 159260351, name: "Taylor Swift", primaryGenre: .pop, albums: [])
}
static var albums: [Album] {
let eightyNine = Album(id: 907242701, artistName: "Taylor Swift", name: "1989", censoredName: "1989", artworkUrl: "http://is2.mzstatic.com/image/thumb/Music5/v4/29/fa/b6/29fab67f-c950-826f-26a0-5eebcd0e262b/source/100x100bb.jpg", isExplicit: false, numberOfTracks: 14, releaseDate: Date(), primaryGenre: .pop)
let red = Album(id: 571445253, artistName: "Taylor Swift", name: "Red", censoredName: "Red", artworkUrl: "http://is4.mzstatic.com/image/thumb/Music/v4/11/b7/3f/11b73fb0-46af-42b5-111a-6bce1815562f/source/100x100bb.jpg", isExplicit: false, numberOfTracks: 16, releaseDate: Date(), primaryGenre: .country)
return [eightyNine, red]
}
static var songs: [Song] {
let welcomeToNY = Song(id: 907242702, name: "Welcome To New York", censoredName: "Welcome To New York", trackTime: 212600, isExplicit: false)
let blankSpace = Song(id: 907242703, name: "Blank Space", censoredName: "Blank Space", trackTime: 231833, isExplicit: false)
return [welcomeToNY, blankSpace]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment