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

16 lines
300 B
Swift
Raw Normal View History

import Foundation
enum SupportedLanguage {
case german
case english
var gameSummarizer: GameSummarizer.Type {
switch self {
case .german:
return GermanGameSummarizer.self
case .english:
return EnglishGameSummarizer.self
}
}
}