private void CheckBrewButtonStatus() { var brewButtonStatus = _coffeeMakerApi.GetBrewButtonStatus(); if (brewButtonStatus == BrewButtonStatus.Pushed) { Brew(); } }
public void Poll() { BrewButtonStatus status = api.GetBrewButtonStatus(); if (status == BrewButtonStatus.PUSHED) { StartBrewing(); } }