public void Poll() { WarmerPlateStatus potStatus = api.GetWarmerPlateStatus(); if (potStatus != lastPotStatus) { if (isBrewing) { HandleBrewingEvent(potStatus); } else if (isComplete == false) { HandleCompleteEvent(potStatus); } lastPotStatus = potStatus; } }
public override bool IsReady() { return(_coffeeMakerApi.GetWarmerPlateStatus() == WarmerPlateStatus.PotEmpty); }