Schafkopf-Server/Sources/App/GameSummary/SupportedLanguage.swift

16 lines
340 B
Swift
Raw Normal View History

import Foundation
2021-12-22 22:12:31 +01:00
enum SupportedLanguage: String, Codable {
case german = "german"
case english = "english"
var gameSummarizer: GameSummarizer.Type {
switch self {
case .german:
return GermanGameSummarizer.self
case .english:
return EnglishGameSummarizer.self
}
}
}