-
-
Save Pasanpr/cb87f8dc98581ff533482ea7f5ebe4ae to your computer and use it in GitHub Desktop.
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
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