public static bool SetTemp(Enums.Mode theMode, string newTemp, int theUnitID) { string command = SETTEMPANDMODE.Replace("THENEWTEMP", newTemp); command = command.Replace("THENEWMODE", theMode.ToString()); command = command.Replace("PSCUNIT", theUnitID.ToString()); return(SendRequest(command)); }
public async Task <bool> Cleanup(long[] linkIds, long[] packageIds, Enums.Action action, Enums.Mode mode, Enums.SelectionType selectionType) { var param = new object[] { linkIds, packageIds, action.ToString(), mode.ToString(), selectionType.ToString() }; var response = await CallAction <object>("cleanup", param); return(!string.IsNullOrEmpty(response?.ToString())); }