updateSetPoint method

ThermostatSetPointReport updateSetPoint(
  1. List<int> data
)

Implementation

ThermostatSetPointReport updateSetPoint(List<int> data) {
  var setPoint = ThermostatSetPointReport(data);
  switch (setPoint.setPointType) {
    case ThermostatSetPointType.heating:
      heatingSetPoint = setPoint;
      break;
    case ThermostatSetPointType.cooling:
      coolingSetPoint = setPoint;
      break;
  }
  return setPoint;
}