public void TriggerBreachAlert(BMS_Constants.BreachType breachType) { var breachlevel = new Dictionary <string, string>(); breachlevel.Add("NORMAL", "normal"); breachlevel.Add("TOO_LOW", "low"); breachlevel.Add("TOO_HIGH", "high"); Console.WriteLine("To: {0}\n", "ab@com"); Console.WriteLine("Hi, the temperature is {0}\n", breachlevel[breachType.ToString()]); }
public void TriggerBreachAlert(BMS_Constants.BreachType breachType) { Console.WriteLine("There is a {0} breach ", breachType); }
public bool TriggerAlert(BMS_Constants.BreachType breachType) { IsAlertTriggered = true; return(IsAlertTriggered); }
public void TriggerBreachAlert(BMS_Constants.BreachType breachType) { const ushort header = 0xfeed; Console.WriteLine("{} : {}\n", header, breachType); }