public void Poll()
        {
            WarmerPlateStatus potStatus = api.GetWarmerPlateStatus();

            if (potStatus != lastPotStatus)
            {
                if (isBrewing)
                {
                    HandleBrewingEvent(potStatus);
                }
                else if (isComplete == false)
                {
                    HandleCompleteEvent(potStatus);
                }

                lastPotStatus = potStatus;
            }
        }
Exemplo n.º 2
0
 public override bool IsReady()
 {
     return(_coffeeMakerApi.GetWarmerPlateStatus() == WarmerPlateStatus.PotEmpty);
 }