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