Skip to content

Instantly share code, notes, and snippets.

@Pasanpr
Created April 3, 2017 20:30
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/cb87f8dc98581ff533482ea7f5ebe4ae to your computer and use it in GitHub Desktop.
Save Pasanpr/cb87f8dc98581ff533482ea7f5ebe4ae to your computer and use it in GitHub Desktop.
enum ItunesMedia {
case movie
case podcast
case music
case musicVideo
case audiobook
case shortFilm
case tvShow
case software
case ebook
case all
}
extension ItunesMedia: CustomStringConvertible {
var description: String {
switch self {
case .movie: return "movie"
case .podcast: return "podcast"
case .music: return "music"
case .musicVideo: return "musicVideo"
case .audiobook: return "audiobook"
case .shortFilm: return "shortFilm"
case .tvShow: return "tvShow"
case .software: return "software"
case .ebook: return "ebook"
case .all: return "all"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment