Initalier Commit
This commit is contained in:
27
Linkster/StreamingService.swift
Normal file
27
Linkster/StreamingService.swift
Normal file
@@ -0,0 +1,27 @@
|
||||
import Foundation
|
||||
|
||||
enum StreamingService: String, CaseIterable, Identifiable {
|
||||
case deezer = "deezer"
|
||||
case spotify = "spotify"
|
||||
case appleMusic = "appleMusic"
|
||||
case amazonMusic = "amazonMusic"
|
||||
case tidal = "tidal"
|
||||
case soundcloud = "soundcloud"
|
||||
case youtube = "youtube"
|
||||
case youtubeMusic = "youtubeMusic"
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
var displayName: String {
|
||||
switch self {
|
||||
case .deezer: return "Deezer"
|
||||
case .spotify: return "Spotify"
|
||||
case .appleMusic: return "Apple Music"
|
||||
case .amazonMusic: return "Amazon Music"
|
||||
case .tidal: return "Tidal"
|
||||
case .soundcloud: return "SoundCloud"
|
||||
case .youtube: return "YouTube"
|
||||
case .youtubeMusic: return "YouTube Music"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user