Schafkopf-Server/Sources/App/GameSummary/SupportedLanguage.swift
2021-12-21 09:53:20 +01:00

16 lines
300 B
Swift

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