public static SaveCycle ( |
||
cycle | ||
Результат | int |
public static void StartCycle(int thermostatId, string cycleType, Int16 precision) { Cycle c = new Cycle(); c.CycleType = cycleType; c.StartDate = DateTime.Now; c.IsEndDateNull = true; c.ThermostatId = thermostatId; c.StartPrecision = precision; Cycle.SaveCycle(c); }
public static void LogCycle(int thermostatId, string cycleType, DateTime startDate, DateTime endDate, Int16 startPrecision, Int16 endPrecision) { Cycle c = new Cycle(); c.CycleType = cycleType; c.EndDate = endDate; c.StartDate = startDate; c.ThermostatId = thermostatId; c.StartPrecision = startPrecision; c.EndPrecision = endPrecision; Cycle.SaveCycle(c); }
public static void EndCycle(Cycle c, Int16 precision) { c.EndDate = DateTime.Now; c.EndPrecision = precision; Cycle.SaveCycle(c); }