public static GeneratorType GetDMSGeneratorType(FTN.GeneratorType generatorType) { switch (generatorType) { case FTN.GeneratorType.wind: return(GeneratorType.Wind); case FTN.GeneratorType.solar: return(GeneratorType.Solar); case FTN.GeneratorType.oil: return(GeneratorType.Oil); case FTN.GeneratorType.hydro: return(GeneratorType.Hydro); case FTN.GeneratorType.gas: return(GeneratorType.Gas); case FTN.GeneratorType.coal: return(GeneratorType.Coal); default: return(GeneratorType.Unknown); } }
public static GeneratorType GetDMSGeneratorType(FTN.GeneratorType generatorType) { switch (generatorType) { case FTN.GeneratorType.Wind: return(GeneratorType.Wind); case FTN.GeneratorType.Solar: return(GeneratorType.Solar); case FTN.GeneratorType.Battery: return(GeneratorType.Battery); default: return(GeneratorType.None); } }