Schafkopf-Server/Sources/App/GameSummary/SupportedLanguage.swift
2021-12-22 22:12:31 +01:00

16 lines
340 B
Swift

import Foundation
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
}
}
}