//
//  Constants.swift
//  nstack-localizations-generator
//
//  Created by Bob De Kort on 08/08/2019.
//  Copyright © 2019 Nodes. All rights reserved.
//

import Foundation

struct Constants {
    enum ErrorDomain: String {
        case tGenerator = "com.nodes.localizations-generator"
        case sktGenerator = "com.nodes.sk-localizations-generator"
    }
    
    enum ModelName: String {
        case tGenerator = "Localizations"
        case sktGenerator = "SKLocalizations"
    }
    
    static func errorDomainFor(_ generator: Generator) -> String {
        switch generator {
        case is LGenerator:     return ErrorDomain.tGenerator.rawValue
        case is SKTGenerator:   return ErrorDomain.sktGenerator.rawValue
        default:                return ""
        }
    }
    
    static func modelNameFor(_ generator: Generator) -> String {
        switch generator {
        case is LGenerator:     return ModelName.tGenerator.rawValue
        case is SKTGenerator:   return ModelName.sktGenerator.rawValue
        default:                return ""
        }
    }
}
